* [PATCH] autofs: only declare function when CONFIG_COMPAT is defined
@ 2010-09-13 21:21 Németh Márton
0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2010-09-13 21:21 UTC (permalink / raw)
To: H. Peter Anvin, autofs; +Cc: LKML
From: Márton Németh <nm127@freemail.hu>
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
Signed-off-by: Márton Németh <nm127@freemail.hu>
---
--- linux-2.6.36-rc4/fs/autofs/root.c.orig 2010-09-13 20:18:15.000000000 +0200
+++ linux-2.6.36-rc4/fs/autofs/root.c 2010-09-13 21:02:11.000000000 +0200
@@ -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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-13 21:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-13 21:21 [PATCH] autofs: only declare function when CONFIG_COMPAT is defined Németh Márton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®