]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
autofs - fix sparse warning for autofs4_d_manage()
authorClaudiu Ghioc <claudiughioc@gmail.com>
Mon, 6 May 2013 05:47:16 +0000 (13:47 +0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 May 2013 20:06:59 +0000 (13:06 -0700)
Fixed the sparse warning:

  fs/autofs4/root.c:411:5: warning: symbol 'autofs4_d_manage' was not declared. Should it be static?"

[ Clearly it should be static as the function is declared static at the
  top of root.c.  - imk ]

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/root.c

index 9bd16255dd9cd631371acf3ed3ec276682ded828..085da86e07c22031f14b999d6caaf77063dfbde7 100644 (file)
@@ -408,7 +408,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);
        struct autofs_info *ino = autofs4_dentry_ino(dentry);