]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3414ce527f5787d1ee7fefab79e0ffcc4856d2e
treef43c61ccf5c0d6dcfc1e0e047b8bd7aef9274d86
parentcd7b9261dfb7659c4090a22b22153808a362a45d
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