summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-04-07 06:08:24 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-07 20:43:41 +0300
commit8a374cccee8cdfa2902bb7a07a10671ffc1a72c1 (patch)
tree524bcc4fe9a56485a69a8ae6bbb3c653b4bda2b8 /mm
parentcfc451cfdf1dde36eada652a4b16d9b1524c5932 (diff)
downloadlinux-8a374cccee8cdfa2902bb7a07a10671ffc1a72c1.tar.xz
mm/zsmalloc: add missing annotation for migrate_read_unlock()
Sparse reports a warning at migrate_read_unlock()() warning: context imbalance in migrate_read_unlock() - unexpected unlock The root cause is the missing annotation at migrate_read_unlock() Add the missing __releases(&zspage->lock) annotation Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Minchan Kim <minchan@kernel.org> Link: http://lkml.kernel.org/r/20200214204741.94112-12-jbi.octave@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/zsmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index da70817b4ed8..2eab424c8c67 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1838,7 +1838,7 @@ static void migrate_read_lock(struct zspage *zspage) __acquires(&zspage->lock)
read_lock(&zspage->lock);
}
-static void migrate_read_unlock(struct zspage *zspage)
+static void migrate_read_unlock(struct zspage *zspage) __releases(&zspage->lock)
{
read_unlock(&zspage->lock);
}