mm/zsmalloc: add missing annotation for migrate_read_unlock()
authorJules Irenge <jbi.octave@gmail.com>
Tue, 7 Apr 2020 03:08:24 +0000 (20:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:41 +0000 (10:43 -0700)
commit8a374cccee8cdfa2902bb7a07a10671ffc1a72c1
tree524bcc4fe9a56485a69a8ae6bbb3c653b4bda2b8
parentcfc451cfdf1dde36eada652a4b16d9b1524c5932
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>
mm/zsmalloc.c