* Subject: [PATCH 2.6.36 1/1] autofs4: fix for root.c compiler warnings.
@ 2010-11-08 15:59 Atul Sowani
0 siblings, 0 replies; only message in thread
From: Atul Sowani @ 2010-11-08 15:59 UTC (permalink / raw)
To: viro; +Cc: raven, linux-kernel, linux-fsdevel, autofs, linux-afs
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
Signed-off-by: Atul Sowani <sowani@gmail.com>
---
diff -uprN a/fs/autofs4/root.c b/fs/autofs4/root.c
--- a/fs/autofs4/root.c 2010-10-21 02:00:22.000000000 +0530
+++ b/fs/autofs4/root.c 2010-11-08 09:37:47.675766134 +0530
@@ -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 *);
--
Atul Sowani (sowani@gmail.com)
http://savannah.gnu.org/users/atul
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-08 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 15:59 Subject: [PATCH 2.6.36 1/1] autofs4: fix for root.c compiler warnings Atul Sowani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).