提交 cd5f9a4c 编写于 作者: L Linus Torvalds

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: NLinus Torvalds <torvalds@linux-foundation.org>
上级 609862be
...@@ -97,8 +97,8 @@ static int neg_one = -1; ...@@ -97,8 +97,8 @@ static int neg_one = -1;
#endif #endif
static int zero; static int zero;
static int one = 1; static int __maybe_unused one = 1;
static int two = 2; static int __maybe_unused two = 2;
static unsigned long one_ul = 1; static unsigned long one_ul = 1;
static int one_hundred = 100; static int one_hundred = 100;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册