summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-01-02 13:44:12 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-02 10:19:37 -0800
commit8c056e5b148498192832678cf2957760945e8c71 (patch)
treef6462adeb837deb0397aefd03cac5daf3827b7a7 /fs
parent4bd43f2c31848d751f63e8753cd2788d48fb5f30 (diff)
downloadlinux-8c056e5b148498192832678cf2957760945e8c71.tar.gz
linux-8c056e5b148498192832678cf2957760945e8c71.tar.bz2
linux-8c056e5b148498192832678cf2957760945e8c71.zip
devpts: fix unused function warning
fs/devpts/inode.c:324: warning: 'compare_init_pts_sb' defined but not used Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/devpts/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index b02c24313d5c..3f309f181de8 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -320,6 +320,7 @@ fail:
return -ENOMEM;
}
+#ifdef CONFIG_DEVPTS_MULTIPLE_INSTANCES
static int compare_init_pts_sb(struct super_block *s, void *p)
{
if (devpts_mnt)
@@ -327,7 +328,6 @@ static int compare_init_pts_sb(struct super_block *s, void *p)
return 0;
}
-#ifdef CONFIG_DEVPTS_MULTIPLE_INSTANCES
/*
* Safely parse the mount options in @data and update @opts.
*