Skip to content

Commit

Permalink
kernel/sysctl.c: avoid annoying warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds committed Apr 6, 2009
1 parent 609862b commit cd5f9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cd5f9a4

Please sign in to comment.