All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] fs: Fix warning: 'autofs4_root_compat_ioctl'
@ 2010-08-25 23:31 Jean Sacren
  2010-08-25 23:34 ` [PATCH 1/1] fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined Jean Sacren
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Sacren @ 2010-08-25 23:31 UTC (permalink / raw)
  To: Linux Filesystem Development list


Jean Sacren (1):
  fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but
    never defined

 fs/autofs4/root.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


-- 
Jean Sacren
Bring LAMP To People

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined
  2010-08-25 23:31 [PATCH 0/1] fs: Fix warning: 'autofs4_root_compat_ioctl' Jean Sacren
@ 2010-08-25 23:34 ` Jean Sacren
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Sacren @ 2010-08-25 23:34 UTC (permalink / raw)
  To: Linux Filesystem Development list

warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined

Fix the above warning by correctly preprocessing the declaration of
autofs4_root_compat_ioctl.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
---
 fs/autofs4/root.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index cb1bd38..87f22ae 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -28,7 +28,9 @@ static int autofs4_dir_unlink(struct inode *,struct dentry *);
 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 *);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-25 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 23:31 [PATCH 0/1] fs: Fix warning: 'autofs4_root_compat_ioctl' Jean Sacren
2010-08-25 23:34 ` [PATCH 1/1] fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined Jean Sacren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.