Skip to contentSkip to conversation

autofs: only declare function when CONFIG_COMPAT is defined

PATCH New Németh Márton 1 participant 1 message Sep 13, 2010 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs: only declare function when CONFIG_COMPAT is defined

From: Márton Németh <[email protected]>

The patch solves tohe following warnings message when CONFIG_COMPAT is not defined:
fs/autofs/root.c:30: warning: ‘autofs_root_compat_ioctl’ declared ‘static’ but never defined

---

fs/autofs/root.c renamed from fs/autofs/root.c.orig +2 -0
@@ -27,7 +27,9 @@ static int autofs_root_unlink(struct ino
 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,