mm/zsmalloc: add missing annotation for pin_tag()
authorJules Irenge <jbi.octave@gmail.com>
Tue, 7 Apr 2020 03:08:27 +0000 (20:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:41 +0000 (10:43 -0700)
commit70c7ec95bece1bd01e25fbc4f17c9262445de417
treef43c61ccf5c0d6dcfc1e0e047b8bd7aef9274d86
parent8a374cccee8cdfa2902bb7a07a10671ffc1a72c1
mm/zsmalloc: add missing annotation for pin_tag()

Sparse reports a warning at pin_tag()()

warning: context imbalance in pin_tag() - wrong count at exit

The root cause is the missing annotation at pin_tag()
Add the missing __acquires(bitlock) 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-13-jbi.octave@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c