Skip to contentSkip to conversation

Subject: [PATCH 2.6.36 1/1] autofs4: fix for root.c compiler warnings.

PATCH Atul Sowani 1 participant 1 message Nov 8, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Added conditional compilation with CONFIG_COMPAT to avoid compiler warning:
fs/autofs4/root.c:31: warning: autofs4_root_compat_ioctl declared static but never defined

---

fs/autofs4/root.c +2 -0
diff -uprN a/fs/autofs4/root.c b/fs/autofs4/root.c
@@ -28,7 +28,9 @@ static int autofs4_dir_unlink(struct ino
 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 · 3 lines
Atul Sowani ([email protected])
http://savannah.gnu.org/users/atul
------------------------------------------------------------------------