Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: android: Mark local functions in binder.c as static

This fixes the following sparse warnings
drivers/staging/android/binder.c:1703:5: warning: symbol 'binder_thread_write' was not declared. Should it be static?
drivers/staging/android/binder.c:2058:6: warning: symbol 'binder_stat_br' was not declared. Should it be static?

Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bojan Prtvar and committed by
Greg Kroah-Hartman
fb07ebc3 308fbd8a

+4 -3
+4 -3
drivers/staging/android/binder.c
··· 1700 1700 thread->return_error = return_error; 1701 1701 } 1702 1702 1703 - int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread, 1703 + static int binder_thread_write(struct binder_proc *proc, 1704 + struct binder_thread *thread, 1704 1705 void __user *buffer, size_t size, size_t *consumed) 1705 1706 { 1706 1707 uint32_t cmd; ··· 2056 2055 return 0; 2057 2056 } 2058 2057 2059 - void binder_stat_br(struct binder_proc *proc, struct binder_thread *thread, 2060 - uint32_t cmd) 2058 + static void binder_stat_br(struct binder_proc *proc, 2059 + struct binder_thread *thread, uint32_t cmd) 2061 2060 { 2062 2061 trace_binder_return(cmd); 2063 2062 if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.br)) {