Skip to contentSkip to conversation

proc: fix sparse warning: make function grab_header static

PATCH New Hannes Eder 1 participant 1 message Aug 29, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: fix sparse warning: make function grab_header static

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?

---
 fs/proc/proc_sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/proc/proc_sysctl.c +1 -1
index f9a8b89..84f58e8 100644
@@ -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);