diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2002-07-27 06:07:03 -0700 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2002-07-27 06:07:03 -0700 |
| commit | 9f3d6f92336aca4d1291a65af652045142eca0e7 (patch) | |
| tree | c788ef4e1d2090c57963df57b9aaadef0d3ca771 /include | |
| parent | 9ef49e9038d08fa341ec1d19b00401f7939fb31c (diff) | |
[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
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/smp.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 454fdcdf14d2..df77d136f5e2 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -101,9 +101,13 @@ static inline void smp_send_reschedule_all(void) { } #define this_cpu(var) var /* Need to know about CPUs going up/down? */ -#define register_cpu_notifier(nb) 0 -#define unregister_cpu_notifier(nb) do { } while(0) - +static inline int register_cpu_notifier(struct notifier_block *nb) +{ + return 0; +} +static inline void unregister_cpu_notifier(struct notifier_block *nb) +{ +} #endif /* !SMP */ #define get_cpu() ({ preempt_disable(); smp_processor_id(); }) |
