From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Sacren Subject: [PATCH 1/1] fs: Fix warning: 'autofs4_root_compat_ioctl' declared 'static' but never defined Date: Wed, 25 Aug 2010 17:34:28 -0600 Message-ID: <20100825233427.GA7007@mail.gmail.com> References: <20100825233157.GA6999@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Linux Filesystem Development list Return-path: Received: from mail-px0-f174.google.com ([209.85.212.174]:57384 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752037Ab0HYXeZ (ORCPT ); Wed, 25 Aug 2010 19:34:25 -0400 Received: by pxi10 with SMTP id 10so404013pxi.19 for ; Wed, 25 Aug 2010 16:34:24 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20100825233157.GA6999@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- 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