• Thomas Gleixner's avatar
    sched/numa: Hide numa_wake_affine() from UP build · ff801b71
    Thomas Gleixner authored
    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: 3fed382b ("sched/numa: Implement NUMA node level wake_affine()")
    Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    ff801b71
fair.c 246 KB