Commit cd5f9a4c3199b090e91ea0064cb110985ba54814

Authored by Linus Torvalds
1 parent 609862be07

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -97,8 +97,8 @@
97 97 #endif
98 98  
99 99 static int zero;
100   -static int one = 1;
101   -static int two = 2;
  100 +static int __maybe_unused one = 1;
  101 +static int __maybe_unused two = 2;
102 102 static unsigned long one_ul = 1;
103 103 static int one_hundred = 100;
104 104