autofs: Only declare function when CONFIG_COMPAT is defined
authorMárton Németh <nm127@freemail.hu>
Fri, 24 Sep 2010 13:22:22 +0000 (15:22 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 5 Oct 2010 09:02:15 +0000 (11:02 +0200)
The patch solves the following warnings message when CONFIG_COMPAT
is not defined:

fs/autofs/root.c:30: warning: ‘autofs_root_compat_ioctl’ declared ‘static’ but never defined

Signed-off-by: Márton Németh <nm127@freemail.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/autofs/root.c

index 11b1ea786d006472cc93cd0f33e6f787445ef569..0c4ca81aeaebb43e5d34b53626d1b886507cff86 100644 (file)
@@ -27,7 +27,9 @@ static int autofs_root_unlink(struct inode *,struct dentry *);
 static int autofs_root_rmdir(struct inode *,struct dentry *);
 static int autofs_root_mkdir(struct inode *,struct dentry *,int);
 static long autofs_root_ioctl(struct file *,unsigned int,unsigned long);
+#ifdef CONFIG_COMPAT
 static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long);
+#endif
 
 const struct file_operations autofs_root_operations = {
        .llseek         = generic_file_llseek,