Skip to contentSkip to conversation

ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release

PATCH New Saeed Bishara 2 participants 2 messages Jun 14, 2011 – Jun 19, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release

This patch fixes the following false section mismatch warning, this function used only in CONFIG_HOTPLUG_CPU, and in this configuration, the cpuinit section will not be freed, so it's ok to reference pen_release.

WARNING: vmlinux.o(.text+0x12484): Section mismatch in reference from the function platform_cpu_die() to the variable .cpuinit.data:pen_release The function platform_cpu_die() references
the variable __cpuinitdata pen_release.
This is often because platform_cpu_die lacks a __cpuinitdata
annotation or the annotation of pen_release is wrong.

---
 arch/arm/mach-realview/hotplug.c |    2 +-
 arch/arm/mach-vexpress/hotplug.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-realview/hotplug.c +1 -1
index a87523d..44841c6 100644
@@ -97,7 +97,7 @@ int platform_cpu_kill(unsigned int cpu)
  *
  * Called with IRQs disabled
  */
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)
 {
 	int spurious = 0;
 
arch/arm/mach-vexpress/hotplug.c +1 -1
index ea4cbfb..0436fcf 100644
@@ -98,7 +98,7 @@ int platform_cpu_kill(unsigned int cpu)
  *
  * Called with IRQs disabled
  */
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)
 {
 	int spurious = 0;
 
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release

Quoted 42 lines · Saeed Bishara

This patch fixes the following false section mismatch warning, this function used only in CONFIG_HOTPLUG_CPU, and in this configuration, the cpuinit section will not be freed, so it's ok to reference pen_release.

WARNING: vmlinux.o(.text+0x12484): Section mismatch in reference from the function platform_cpu_die() to the variable .cpuinit.data:pen_release The function platform_cpu_die() references
the variable __cpuinitdata pen_release.
This is often because platform_cpu_die lacks a __cpuinitdata
annotation or the annotation of pen_release is wrong.

---
?arch/arm/mach-realview/hotplug.c | ? ?2 +-
?arch/arm/mach-vexpress/hotplug.c | ? ?2 +-
?2 files changed, 2 insertions(+), 2 deletions(-)

arch/arm/mach-realview/hotplug.c +0 -0
index a87523d..44841c6 100644
@@ -97,7 +97,7 @@ int platform_cpu_kill(unsigned int cpu)

?*
?* Called with IRQs disabled
?*/

arch/arm/mach-realview/hotplug.c +1 -1
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)

?{
? ? ? ?int spurious = 0;

arch/arm/mach-vexpress/hotplug.c +0 -0
index ea4cbfb..0436fcf 100644
@@ -98,7 +98,7 @@ int platform_cpu_kill(unsigned int cpu)

?*
?* Called with IRQs disabled
?*/

arch/arm/mach-vexpress/hotplug.c +1 -1
-void platform_cpu_die(unsigned int cpu)
+void __ref platform_cpu_die(unsigned int cpu)

?{
? ? ? ?int spurious = 0;

Quoted 2 lines

--
1.7.4.1

can you review this patch?
saeed