Skip to contentSkip to conversation

autofs4/root.c: quiet sparse noise

PATCH In review H Hartley Sweeten 2 participants 2 messages Sep 10, 2011 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs4/root.c: quiet sparse noise

The function autofs4_d_manage is prototyped as a static function. Add static to the function to quiet the sparse noise:

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

---

fs/autofs4/root.c +1 -1
index f55ae23..366a9f2 100644
@@ -427,7 +427,7 @@ done:
 	return NULL;
 }
 
-int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
+static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
 {
 	struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
 
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · H Hartley Sweeten

The function autofs4_d_manage is prototyped as a static function. Add static to the function to quiet the sparse noise:

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

Thought I had done that in the original series ....

Quoted 16 lines

---

fs/autofs4/root.c +1 -1
index f55ae23..366a9f2 100644
@@ -427,7 +427,7 @@ done:
 	return NULL;
 }
 
-int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
+static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
 {
 	struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);