From: Andrew Morton Date: Thu, 9 May 2013 23:57:01 +0000 (+1000) Subject: cpu-hotplug-provide-a-generic-helper-to-disable-enable-cpu-hotplug-fix-fix X-Git-Tag: next-20130521~1^2~180 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ce3140427ffe96f8ca8c779ea6129b8dde4bdf25;p=karo-tx-linux.git cpu-hotplug-provide-a-generic-helper-to-disable-enable-cpu-hotplug-fix-fix a pox on macros, for the 1000th time Cc: "Srivatsa S. Bhat" Cc: Cc: Guan Xuetao Cc: H. Peter Anvin Cc: Ingo Molnar Cc: Robin Holt Cc: Russ Anderson Cc: Russell King Cc: Shawn Guo Cc: Srivatsa S. Bhat Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 3c31f8557224..73f02a3e6ab7 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -173,8 +173,13 @@ static inline void cpu_maps_update_done(void) extern void cpu_hotplug_enable(void); extern void cpu_hotplug_disable(void); #else -#define cpu_hotplug_enable() do { } while (0) -#define cpu_hotplug_disable() do { } while (0) +static inline void cpu_hotplug_enable(void) +{ +} + +static inline void cpu_hotplug_disable(void) +{ +} #endif extern struct bus_type cpu_subsys;