|
@@ -119,8 +119,9 @@ static inline void cpuhotplug_mutex_unlock(struct mutex *cpu_hp_mutex)
|
|
|
#define lock_cpu_hotplug() do { } while (0)
|
|
|
#define unlock_cpu_hotplug() do { } while (0)
|
|
|
#define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0)
|
|
|
-#define register_hotcpu_notifier(nb) do { (void)(nb); } while (0)
|
|
|
-#define unregister_hotcpu_notifier(nb) do { (void)(nb); } while (0)
|
|
|
+/* These aren't inline functions due to a GCC bug. */
|
|
|
+#define register_hotcpu_notifier(nb) ({ (void)(nb); 0; })
|
|
|
+#define unregister_hotcpu_notifier(nb) ({ (void)(nb); })
|
|
|
|
|
|
/* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */
|
|
|
static inline int cpu_is_offline(int cpu) { return 0; }
|