]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Hide numa_wake_affine() from UP build
authorThomas Gleixner <tglx@linutronix.de>
Thu, 29 Jun 2017 06:25:52 +0000 (08:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 29 Jun 2017 06:25:52 +0000 (08:25 +0200)
commit95dc6b3a8155b13d68600c7b338256784a689a9d
tree106c5cc1f8902aee0bda368896188bba3c6a03b9
parent16a16792b6b42a2e77450b31af73c595036b8904
sched/numa: Hide numa_wake_affine() from UP build

Stephen reported the following build warning in UP:

kernel/sched/fair.c:2657:9: warning: 'struct sched_domain' declared inside
parameter list
         ^
/home/sfr/next/next/kernel/sched/fair.c:2657:9: warning: its scope is only this
definition or declaration, which is probably not what you want

Hide the numa_wake_affine() inline stub on UP builds to get rid of it.

Fixes: 5062ee9c88e2 ("sched/numa: Implement NUMA node level wake_affine()")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
kernel/sched/fair.c