autofs: Only declare function when CONFIG_COMPAT is defined

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>

authored by Márton Németh and committed by Arnd Bergmann 26daad80 2a4df5d3

+2
+2
fs/autofs/root.c
··· 27 static int autofs_root_rmdir(struct inode *,struct dentry *); 28 static int autofs_root_mkdir(struct inode *,struct dentry *,int); 29 static long autofs_root_ioctl(struct file *,unsigned int,unsigned long); 30 static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long); 31 32 const struct file_operations autofs_root_operations = { 33 .llseek = generic_file_llseek,
··· 27 static int autofs_root_rmdir(struct inode *,struct dentry *); 28 static int autofs_root_mkdir(struct inode *,struct dentry *,int); 29 static long autofs_root_ioctl(struct file *,unsigned int,unsigned long); 30 + #ifdef CONFIG_COMPAT 31 static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long); 32 + #endif 33 34 const struct file_operations autofs_root_operations = { 35 .llseek = generic_file_llseek,