kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] proc: fix sparse warning: make function grab_header static
@ 2008-08-29 19:01 Hannes Eder
  0 siblings, 0 replies; only message in thread
From: Hannes Eder @ 2008-08-29 19:01 UTC (permalink / raw)
  To: linux-kernel, kernel-janitors

Fix the following sparse warning in fs/proc/proc_sysctl.c, by making
the function grab_header static.

warning: symbol 'grab_header' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
 fs/proc/proc_sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index f9a8b89..84f58e8 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -66,7 +66,7 @@ static struct ctl_table *find_in_table(struct ctl_table *p, struct qstr *name)
 	return NULL;
 }
 
-struct ctl_table_header *grab_header(struct inode *inode)
+static struct ctl_table_header *grab_header(struct inode *inode)
 {
 	if (PROC_I(inode)->sysctl)
 		return sysctl_head_grab(PROC_I(inode)->sysctl);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-29 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 19:01 [PATCH] proc: fix sparse warning: make function grab_header static Hannes Eder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).