[PATCH 01/13] drivers: android: correct the size of struct binder_uintptr_t for BC_DEAD_BINDER_DONE

2015-05-28 Thread Riley Andrews
From: Lisa Du There's one point was missed in the patch commit da49889deb34 ("staging: binder: Support concurrent 32 bit and 64 bit processes."). When configure BINDER_IPC_32BIT, the size of binder_uintptr_t was 32bits, but size of void * is 64bit on 64bit system. Correct it here. Signed-off-by:

[PATCH 13/13] android: binder: add function for processing work nodes in binder_thread_read

2015-05-28 Thread Riley Andrews
Split up binder_thread_read into a function for waiting for work and a function for processing the work nodes. Signed-off-by: Riley Andrews --- drivers/android/binder.c | 96 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/drivers/

[PATCH 10/13] android: binder: refactor binder_thread_read loop

2015-05-28 Thread Riley Andrews
Add dedicated functions for every work type in the switch statement. Refactor the loop logic to remove the while 1, and make it explicit which work items cause the loop to exit. Signed-off-by: Riley Andrews --- drivers/android/binder.c | 433 +-- 1 fil

[PATCH 02/13] android: binder: fix duplicate error return.

2015-05-28 Thread Riley Andrews
Duplicate errors can be returned to userspace when the thread error code is left set when the read buffer runs out of space. Signed-off-by: Riley Andrews --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder.c b/drivers/android/bi

[PATCH 04/13] android: binder: refactor binder_transact handle translation

2015-05-28 Thread Riley Andrews
Add dedicated functions for handling the movement of fds, binder objects, and references across processes. Signed-off-by: Riley Andrews --- drivers/android/binder.c | 311 +-- 1 file changed, 167 insertions(+), 144 deletions(-) diff --git a/drivers/an

[PATCH 07/13] android: binder: add functions for manipulating transaction stack

2015-05-28 Thread Riley Andrews
Add helper functions for manipulating the transaction stack, and for validating the transaction stack during binder transactions and replies. Signed-off-by: Riley Andrews --- drivers/android/binder.c | 126 +-- 1 file changed, 79 insertions(+), 47 dele

Re: staging: unisys: Convert bus functions to pass bus_info pointer around

2015-05-28 Thread Don Zickus
On Wed, May 27, 2015 at 07:02:51PM +0300, Dan Carpenter wrote: > Hello Don Zickus, > > This is a semi-automatic email about new static checker warnings. > > The patch 3032aeddd85e: "staging: unisys: Convert bus functions to > pass bus_info pointer around" from May 13, 2015, leads to the > follo

[PATCH] staging: unisys: visorbus: add static declarations

2015-05-28 Thread Drew Fustini
Add static declarations to statisfy sparse warnings in: drivers/staging/unisys/visorbus/visorbus_main.c warning: symbol 'visorbus_debug' was not declared warning: symbol 'visorbus_forcematch' was not declared warning: symbol 'visorbus_forcenomatch' was not declared warning: symbol 'visor

Re: [PATCH] staging: dgnc: check return value of kzalloc

2015-05-28 Thread Gujulan Elango, Hari Prasath (H.)
On Thu, May 28, 2015 at 04:32:30PM +0300, Dan Carpenter wrote: > On Thu, May 28, 2015 at 01:23:57PM +, Gujulan Elango, Hari Prasath (H.) > wrote: > > Check the return value of kzalloc & return error if it fails. > > > > Signed-off-by: Gujulan Elango Hari Prasath > > --- > > drivers/staging/

<    1   2