From: Bojan Prtvar Date: Sun, 1 Sep 2013 18:30:38 +0000 (+0200) Subject: Staging: android: add __user annotation in binder.c X-Git-Tag: firefly_0821_release~4090^2~122 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=268fc12dd625412dd5ece4a70a6003ca69062db3;p=firefly-linux-kernel-4.4.55.git Staging: android: add __user annotation in binder.c This fixes the following sparse error drivers/staging/android/binder.c:1795:36: error: incompatible types in comparison expression (different address spaces) Change-Id: I3824cb700d0de0e24c94771b1441e639d7d4d18b Signed-off-by: Bojan Prtvar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index d9f4712ad999..1432d956769c 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -1774,7 +1774,7 @@ static int binder_thread_write(struct binder_proc *proc, case BC_INCREFS_DONE: case BC_ACQUIRE_DONE: { void __user *node_ptr; - void *cookie; + void __user *cookie; struct binder_node *node; if (get_user(node_ptr, (void * __user *)ptr))