From ce3140427ffe96f8ca8c779ea6129b8dde4bdf25 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 10 May 2013 09:57:01 +1000 Subject: [PATCH] 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 --- include/linux/cpu.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.39.5