mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 04:16:39 +00:00
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>
This commit is contained in:
parent
cfc451cfdf
commit
8a374cccee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue