summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-06 22:38:46 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-06 22:38:46 +0200
commitcd5f9a4c3199b090e91ea0064cb110985ba54814 (patch)
tree67d4da296ab85a96f28580420bf4cdef84d3aaaa /kernel/sysctl.c
parentMerge branch 'locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadlinux-cd5f9a4c3199b090e91ea0064cb110985ba54814.tar.xz
linux-cd5f9a4c3199b090e91ea0064cb110985ba54814.zip
kernel/sysctl.c: avoid annoying warnings
Some of the limit constants are used only depending on some complex configuration dependencies, yet it's not worth making the simple variables depend on those configuration details. Just mark them as perhaps not being unused, and avoid the warning. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 82350f8f04f6..b125e3387568 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -97,8 +97,8 @@ static int neg_one = -1;
#endif
static int zero;
-static int one = 1;
-static int two = 2;
+static int __maybe_unused one = 1;
+static int __maybe_unused two = 2;
static unsigned long one_ul = 1;
static int one_hundred = 100;