Skip to contentSkip to conversation

fs: Fix warning: 'autofs4_root_compat_ioctl'

PATCH New Jean Sacren 1 participant 2 messages Aug 25, 2010 VFS

lore
Share & tools
lore
#0 lore raw

cover fs: Fix warning: 'autofs4_root_compat_ioctl'

Jean Sacren (1):
fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but
never defined

 fs/autofs4/root.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 2 lines
Jean Sacren
Bring LAMP To People
#1 lore raw

PATCH 1/1 fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined

warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined

Fix the above warning by correctly preprocessing the declaration of autofs4_root_compat_ioctl.

---
 fs/autofs4/root.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/autofs4/root.c +2 -0
index cb1bd38..87f22ae 100644
@@ -28,7 +28,9 @@ static int autofs4_dir_unlink(struct inode *,struct dentry *);
 static int autofs4_dir_rmdir(struct inode *,struct dentry *);
 static int autofs4_dir_mkdir(struct inode *,struct dentry *,int);
 static long autofs4_root_ioctl(struct file *,unsigned int,unsigned long);
+#ifdef CONFIG_COMPAT
 static long autofs4_root_compat_ioctl(struct file *,unsigned int,unsigned long);
+#endif
 static int autofs4_dir_open(struct inode *inode, struct file *file);
 static struct dentry *autofs4_lookup(struct inode *,struct dentry *, struct nameidata *);
 static void *autofs4_follow_link(struct dentry *, struct nameidata *);
Signature · 1 line
1.7.1