VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Ian Kent <raven@themaw.net> 2018-08-21 21:58:51 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2018-08-22 10:52:49 -0700 commit: 5d30517d67e349164838ad039f0f2d09dde15f59 parent: d1055565bdc27fd4dc90a91988b938b949662025
Commit Summary:
autofs: make autofs_expire_direct() static
Diffstat:
2 files changed, 4 insertions, 7 deletions
diff --git a/fs/autofs/autofs_i.h b/fs/autofs/autofs_i.h
index 5057b9f0f846..fe1b62cfc769 100644
--- a/fs/autofs/autofs_i.h
+++ b/fs/autofs/autofs_i.h
@@ -156,9 +156,6 @@ int autofs_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
 			   struct autofs_sb_info *sbi, int when);
 int autofs_expire_multi(struct super_block *, struct vfsmount *,
 			struct autofs_sb_info *, int __user *);
-struct dentry *autofs_expire_direct(struct super_block *sb,
-				    struct vfsmount *mnt,
-				    struct autofs_sb_info *sbi, int how);
 struct dentry *autofs_expire_indirect(struct super_block *sb,
 				      struct vfsmount *mnt,
 				      struct autofs_sb_info *sbi, int how);
diff --git a/fs/autofs/expire.c b/fs/autofs/expire.c
index 41855cdc5630..64e6eba2c628 100644
--- a/fs/autofs/expire.c
+++ b/fs/autofs/expire.c
@@ -292,10 +292,10 @@ static struct dentry *autofs_check_leaves(struct vfsmount *mnt,
 }
 
 /* Check if we can expire a direct mount (possibly a tree) */
-struct dentry *autofs_expire_direct(struct super_block *sb,
-				    struct vfsmount *mnt,
-				    struct autofs_sb_info *sbi,
-				    int how)
+static struct dentry *autofs_expire_direct(struct super_block *sb,
+					   struct vfsmount *mnt,
+					   struct autofs_sb_info *sbi,
+					   int how)
 {
 	unsigned long timeout;
 	struct dentry *root = dget(sb->s_root);