All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Staging: android: Mark local functions in binder.c as static
@ 2013-09-02  6:18 Bojan Prtvar
  2013-09-02  7:41 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Bojan Prtvar @ 2013-09-02  6:18 UTC (permalink / raw)
  To: kernel-janitors

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>
---
 v2: Fixed indentig as suggested by Dan Carpenter.

 drivers/staging/android/binder.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
index 98ac020..bb7c816 100644
--- a/drivers/staging/android/binder.c
+++ b/drivers/staging/android/binder.c
@@ -1700,7 +1700,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;
@@ -2055,8 +2056,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)) {
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Staging: android: Mark local functions in binder.c as static
  2013-09-02  6:18 [PATCH v2] Staging: android: Mark local functions in binder.c as static Bojan Prtvar
@ 2013-09-02  7:41 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2013-09-02  7:41 UTC (permalink / raw)
  To: kernel-janitors

On Mon, Sep 02, 2013 at 08:18:40AM +0200, Bojan Prtvar wrote:
> 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>
> ---
>  v2: Fixed indentig as suggested by Dan Carpenter.

Thanks.  :)

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-02  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02  6:18 [PATCH v2] Staging: android: Mark local functions in binder.c as static Bojan Prtvar
2013-09-02  7:41 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.