diff options
author | Andrew Morton <akpm@osdl.org> | 2006-07-01 04:36:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-01 09:56:03 -0700 |
commit | e2c2770096b686b4d2456173f53cb50e01aa635c (patch) | |
tree | d1d23d331e52945b61783e53fea9be75c3a2379e | |
parent | 1add6781c85d7e2ee512315113a16193b3e3937d (diff) | |
download | linux-3.10-e2c2770096b686b4d2456173f53cb50e01aa635c.tar.gz linux-3.10-e2c2770096b686b4d2456173f53cb50e01aa635c.tar.bz2 linux-3.10-e2c2770096b686b4d2456173f53cb50e01aa635c.zip |
[PATCH] hotcpu_notifier-fixes
Always use do {} while (0). Failing to do so can cause subtle compile
failures or bugs.
Cc: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index a3caf6866ba..44a11f1ccaf 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -87,9 +87,9 @@ int cpu_down(unsigned int cpu); #define lock_cpu_hotplug() do { } while (0) #define unlock_cpu_hotplug() do { } while (0) #define lock_cpu_hotplug_interruptible() 0 -#define hotcpu_notifier(fn, pri) -#define register_hotcpu_notifier(nb) -#define unregister_hotcpu_notifier(nb) +#define hotcpu_notifier(fn, pri) do { } while (0) +#define register_hotcpu_notifier(nb) do { } while (0) +#define unregister_hotcpu_notifier(nb) do { } while (0) /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ static inline int cpu_is_offline(int cpu) { return 0; } |