Commit 9f3d6f92 authored by Rusty Russell's avatar Rusty Russell Committed by Russell King

[PATCH] Hot-plug CPU notifier warning fix

As pointed out by Andrew Morton, this fixes:
	softirq.c: In function `spawn_ksoftirqd':
	softirq.c:416: warning: statement with no effect
parent 9ef49e90
...@@ -101,9 +101,13 @@ static inline void smp_send_reschedule_all(void) { } ...@@ -101,9 +101,13 @@ static inline void smp_send_reschedule_all(void) { }
#define this_cpu(var) var #define this_cpu(var) var
/* Need to know about CPUs going up/down? */ /* Need to know about CPUs going up/down? */
#define register_cpu_notifier(nb) 0 static inline int register_cpu_notifier(struct notifier_block *nb)
#define unregister_cpu_notifier(nb) do { } while(0) {
return 0;
}
static inline void unregister_cpu_notifier(struct notifier_block *nb)
{
}
#endif /* !SMP */ #endif /* !SMP */
#define get_cpu() ({ preempt_disable(); smp_processor_id(); }) #define get_cpu() ({ preempt_disable(); smp_processor_id(); })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment