]> asedeno.scripts.mit.edu Git - linux.git/commit
binder: fix sparse warnings on locking context
authorTodd Kjos <tkjos@android.com>
Tue, 6 Nov 2018 23:56:31 +0000 (15:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 19:12:05 +0000 (20:12 +0100)
commit324fa64cf4189094bc4df744a9e7214a1b81d845
treecb166960a5b3b450a5d47be23657c6ba2a463aca
parent1dbfe7f23bdb7238c72d8efcffcd75280ff71d20
binder: fix sparse warnings on locking context

Add __acquire()/__release() annnotations to fix warnings
in sparse context checking

There is one case where the warning was due to a lack of
a "default:" case in a switch statement where a lock was
being released in each of the cases, so the default
case was added.

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c