Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f84eb9a1 authored by Bojan Prtvar's avatar Bojan Prtvar Committed by David Ng
Browse files

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?

Change-Id: I930f10e54c19b0c6aca275f3ef51320bcfa3bb34
Signed-off-by: default avatarBojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: fb07ebc3e82a98a3605112b71ea819c359549c4b
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
parent dc251b49
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1721,7 +1721,8 @@ err_no_context_mgr_node:
		thread->return_error = return_error;
}

int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
static int binder_thread_write(struct binder_proc *proc,
			struct binder_thread *thread,
			void __user *buffer, size_t size, size_t *consumed)
{
	uint32_t cmd;
@@ -2083,8 +2084,8 @@ int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
	return 0;
}

void binder_stat_br(struct binder_proc *proc, struct binder_thread *thread,
		    uint32_t cmd)
static void binder_stat_br(struct binder_proc *proc,
			   struct binder_thread *thread, uint32_t cmd)
{
	trace_binder_return(cmd);
	if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.br)) {