]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysctl/sched: Fix 'defined but not used' warning
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 23 Oct 2012 15:47:12 +0000 (17:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Oct 2012 08:19:07 +0000 (10:19 +0200)
commitf7d07c71748f040a1dc85943245931925b80892f
treec5bd7791767ebb40e0a7da5f3d814fc45d455323
parentb6fc69b9e76352786cd945ce3175780fffb467f0
sysctl/sched: Fix 'defined but not used' warning

Since commit ("sched/numa: Implement NUMA home-node selection code")
building a kernel with CONFIG_SMP disabled causes the following
warning:

  kernel/sysctl.c:259:12: warning: 'min_sched_tunable_scaling' defined but not used [-Wunused-variable]
  kernel/sysctl.c:260:12: warning: 'max_sched_tunable_scaling' defined but not used [-Wunused-variable]

Reported-by: Fabio Estevam <fabio.estevam@freescale.com>
[ Ingo preferred extra #ifdef variant over the __maybe_unused ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-p9w5w57ylinrj9zakvhc5zay@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sysctl.c