autofs4: Only declare function when CONFIG_COMPAT is defined

The patch solves the following warnings message when CONFIG_COMPAT
is not defined:

fs/autofs4/root.c:31: warning: ‘autofs4_root_compat_ioctl’ declared ‘static’ but never defined

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Cc: Ian Kent <raven@themaw.net>
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 Felipe Contreras and committed by Arnd Bergmann 5a44a73b 26daad80

+2
+2
fs/autofs4/root.c
··· 28 static int autofs4_dir_rmdir(struct inode *,struct dentry *); 29 static int autofs4_dir_mkdir(struct inode *,struct dentry *,int); 30 static long autofs4_root_ioctl(struct file *,unsigned int,unsigned long); 31 static long autofs4_root_compat_ioctl(struct file *,unsigned int,unsigned long); 32 static int autofs4_dir_open(struct inode *inode, struct file *file); 33 static struct dentry *autofs4_lookup(struct inode *,struct dentry *, struct nameidata *); 34 static void *autofs4_follow_link(struct dentry *, struct nameidata *);
··· 28 static int autofs4_dir_rmdir(struct inode *,struct dentry *); 29 static int autofs4_dir_mkdir(struct inode *,struct dentry *,int); 30 static long autofs4_root_ioctl(struct file *,unsigned int,unsigned long); 31 + #ifdef CONFIG_COMPAT 32 static long autofs4_root_compat_ioctl(struct file *,unsigned int,unsigned long); 33 + #endif 34 static int autofs4_dir_open(struct inode *inode, struct file *file); 35 static struct dentry *autofs4_lookup(struct inode *,struct dentry *, struct nameidata *); 36 static void *autofs4_follow_link(struct dentry *, struct nameidata *);