public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c
@ 2013-12-13  6:42 Rashika Kheria
  2013-12-13  6:51 ` [PATCH 2/5] drivers: misc: Mark functions as static in xp_main.c Rashika Kheria
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Rashika Kheria @ 2013-12-13  6:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dimitri Sivanich, josh

This patch marks the function gru_get_cb_exception_detail_str() and
gru_abort() as static in sgi-gru/grukservices.c because they are not
used outside this file.

Thus, it also eliminates the following warnings in
sgi-gru/grukservices.c:
drivers/misc/sgi-gru/grukservices.c:432:7: warning: no previous prototype for ‘gru_get_cb_exception_detail_str’ [-Wmissing-prototypes]
drivers/misc/sgi-gru/grukservices.c:508:6: warning: no previous prototype for ‘gru_abort’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/misc/sgi-gru/grukservices.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/sgi-gru/grukservices.c b/drivers/misc/sgi-gru/grukservices.c
index 913de07..29d1582 100644
--- a/drivers/misc/sgi-gru/grukservices.c
+++ b/drivers/misc/sgi-gru/grukservices.c
@@ -429,7 +429,7 @@ int gru_get_cb_exception_detail(void *cb,
 	return 0;
 }
 
-char *gru_get_cb_exception_detail_str(int ret, void *cb,
+static char *gru_get_cb_exception_detail_str(int ret, void *cb,
 				      char *buf, int size)
 {
 	struct gru_control_block_status *gen = (void *)cb;
@@ -505,7 +505,7 @@ int gru_wait_proc(void *cb)
 	return ret;
 }
 
-void gru_abort(int ret, void *cb, char *str)
+static void gru_abort(int ret, void *cb, char *str)
 {
 	char buf[GRU_EXC_STR_SIZE];
 
-- 
1.7.9.5


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

end of thread, other threads:[~2013-12-13 17:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13  6:42 [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c Rashika Kheria
2013-12-13  6:51 ` [PATCH 2/5] drivers: misc: Mark functions as static in xp_main.c Rashika Kheria
2013-12-13  8:56   ` Josh Triplett
2013-12-13 17:14     ` Robin Holt
2013-12-13  6:54 ` [PATCH 3/5] drivers: misc: Mark functions as static in xpc_main.c Rashika Kheria
2013-12-13  8:57   ` Josh Triplett
2013-12-13 17:14     ` Robin Holt
2013-12-13  6:57 ` [PATCH 4/5] drivers: misc: Mark functions as static in ad525x_dpot.c Rashika Kheria
2013-12-13  8:19   ` Michael Hennerich
2013-12-13  8:57   ` Josh Triplett
2013-12-13  6:59 ` [PATCH 5/5] drivers: misc: Mark function jp_generic_ide_ioctl() as static in lkdtm.c Rashika Kheria
2013-12-13  8:58   ` Josh Triplett
2013-12-13  8:56 ` [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c Josh Triplett
2013-12-13 14:44 ` Dimitri Sivanich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox