projects/linux·commit cd5f9a4c

kernel/sysctl.c: avoid annoying warnings

cd5f9a4c · Linus Torvalds <[email protected]> · 2009-04-06 13:38:46 -07:00

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 <[email protected]>
Commit
cd5f9a4c3199b090e91ea0064cb110985ba54814
Parents
609862be

Changes

1 files changed · +2 −2

FileStatusAddDelContent
kernel/sysctl.cmodified+2−2View file

kernel/sysctl.c

View file
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 82350f8..b125e33 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;