From: Andrew Morton kernel/softirq.c: In function 'cpu_callback': kernel/softirq.c:593: warning: unused variable 'param' Cc: Ashok Raj Cc: Gautham R Shenoy Cc: Ingo Molnar Cc: Oleg Nesterov Cc: Rusty Russell Cc: Satoru Takeuchi Signed-off-by: Andrew Morton --- kernel/softirq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -puN kernel/softirq.c~cpu-hotplug-fix-ksoftirqd-termination-on-cpu-hotplug-with-naughty-realtime-process-fix kernel/softirq.c --- a/kernel/softirq.c~cpu-hotplug-fix-ksoftirqd-termination-on-cpu-hotplug-with-naughty-realtime-process-fix +++ a/kernel/softirq.c @@ -590,7 +590,6 @@ static int __cpuinit cpu_callback(struct { int hotcpu = (unsigned long)hcpu; struct task_struct *p; - struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 }; switch (action) { case CPU_UP_PREPARE: @@ -616,13 +615,16 @@ static int __cpuinit cpu_callback(struct kthread_bind(per_cpu(ksoftirqd, hotcpu), any_online_cpu(cpu_online_map)); case CPU_DEAD: - case CPU_DEAD_FROZEN: + case CPU_DEAD_FROZEN: { + struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 }; + p = per_cpu(ksoftirqd, hotcpu); per_cpu(ksoftirqd, hotcpu) = NULL; sched_setscheduler(p, SCHED_FIFO, ¶m); kthread_stop(p); takeover_tasklets(hotcpu); break; + } #endif /* CONFIG_HOTPLUG_CPU */ } return NOTIFY_OK; _