Skip to contentSkip to conversation

Fix section mismatch cpu_notify_nofail() -> cpu_chain

PATCH New Luck, Tony 1 participant 1 message May 28, 2010 CPU hotplug

lore
Share & tools
lore

Luck, Tony

author
#0 lore raw

PATCH 1/1 Fix section mismatch cpu_notify_nofail() -> cpu_chain

WARNING: Section mismatch in reference from the function cpu_notify_nofail()
to the variable .cpuinit.data:cpu_chain

It appears that "cpu_chain" should not be marked as __cpuinitdata.

---

kernel/cpu.c +1 -1
index 3097382..84d66a0 100644
@@ -34,7 +34,7 @@ void cpu_maps_update_done(void)
 	mutex_unlock(&cpu_add_remove_lock);
 }
 
-static __cpuinitdata RAW_NOTIFIER_HEAD(cpu_chain);
+static RAW_NOTIFIER_HEAD(cpu_chain);
 
 /* If set, cpu_up and cpu_down will return -EBUSY and do nothing.
  * Should always be manipulated under cpu_add_remove_lock