• Arnd Bergmann's avatar
    cpu/hotplug: Remove unused check_for_tasks() function · 57de7212
    Arnd Bergmann authored
    clang -Wunused-function found one remaining function that was
    apparently meant to be removed in a recent code cleanup:
    
    kernel/cpu.c:565:20: warning: unused function 'check_for_tasks' [-Wunused-function]
    
    Sebastian explained: The function became unused unintentionally, but there
    is already a failure check, when a task cannot be removed from the outgoing
    cpu in the scheduler code, so bringing it back is not really giving any
    extra value.
    
    Fixes: 530e9b76 ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
    Link: http://lkml.kernel.org/r/20170608085544.2257132-1-arnd@arndb.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    57de7212
cpu.c 42.6 KB