diff options
author | Márton Németh <nm127@freemail.hu> | 2010-09-24 09:22:22 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-10-05 05:02:15 -0400 |
commit | 26daad8067f976a6e3622b42b0d80de9a53e8ad9 (patch) | |
tree | 27b988982b20d2c7391aeb6f590518df23dc58bb | |
parent | 2a4df5d33202e99c015928bf2a2dfd8ad03e53bc (diff) |
autofs: Only declare function when CONFIG_COMPAT is defined
The patch solves the 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>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | fs/autofs/root.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/autofs/root.c b/fs/autofs/root.c index 11b1ea786d00..0c4ca81aeaeb 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c | |||
@@ -27,7 +27,9 @@ static int autofs_root_unlink(struct inode *,struct dentry *); | |||
27 | static int autofs_root_rmdir(struct inode *,struct dentry *); | 27 | static int autofs_root_rmdir(struct inode *,struct dentry *); |
28 | static int autofs_root_mkdir(struct inode *,struct dentry *,int); | 28 | static int autofs_root_mkdir(struct inode *,struct dentry *,int); |
29 | static long autofs_root_ioctl(struct file *,unsigned int,unsigned long); | 29 | static long autofs_root_ioctl(struct file *,unsigned int,unsigned long); |
30 | #ifdef CONFIG_COMPAT | ||
30 | static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long); | 31 | static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long); |
32 | #endif | ||
31 | 33 | ||
32 | const struct file_operations autofs_root_operations = { | 34 | const struct file_operations autofs_root_operations = { |
33 | .llseek = generic_file_llseek, | 35 | .llseek = generic_file_llseek, |