diff options
author | Todd Kjos <tkjos@android.com> | 2019-02-13 22:48:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-14 10:13:56 +0300 |
commit | 36f30937922ce75390c73f99e650e4f2eb56b0e6 (patch) | |
tree | 9472761de1936735f9001bff16496d69a2c14690 /drivers/android/binder.c | |
parent | ca5dc2d11787d72dd11f5af77ef07a93a293bea6 (diff) | |
download | linux-36f30937922ce75390c73f99e650e4f2eb56b0e6.tar.xz |
binder: fix sparse issue in binder_alloc_selftest.c
Fixes sparse issues reported by the kbuild test robot running
on https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
char-misc-testing: bde4a19fc04f5 ("binder: use userspace pointer as base
of buffer space")
Error output (drivers/android/binder_alloc_selftest.c):
sparse: warning: incorrect type in assignment (different address spaces)
sparse: expected void *page_addr
sparse: got void [noderef] <asn:1> *user_data
sparse: error: subtraction of different types can't work
Fixed by adding necessary "__user" tags.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder.c')
0 files changed, 0 insertions, 0 deletions