Skip to contentSkip to conversation

ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()

PATCH New Fabio Estevam 3 participants 4 messages Feb 26, 2012 – Feb 27, 2012

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()

Fix the following section mismatch:

WARNING: vmlinux.o(.text+0x11be8): Section mismatch in reference from the function imx3_init_l2x0() to the function .init.text:l2x0_init() The function imx3_init_l2x0() references
the function __init l2x0_init().
This is often because imx3_init_l2x0 lacks a __init
annotation or the annotation of l2x0_init is wrong.

---
 arch/arm/mach-imx/mm-imx3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mm-imx3.c +1 -1
index 8404ee7..6222151 100644
@@ -76,7 +76,7 @@ static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size,
 	return __arm_ioremap(phys_addr, size, mtype);
 }
 
-void imx3_init_l2x0(void)
+void __init imx3_init_l2x0(void)
 {
 	void __iomem *l2x0_base;
 	void __iomem *clkctl_base;
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()

Quoted 9 lines · Fabio Estevam

Fix the following section mismatch:

WARNING: vmlinux.o(.text+0x11be8): Section mismatch in reference from the function imx3_init_l2x0() to the function .init.text:l2x0_init() The function imx3_init_l2x0() references
the function __init l2x0_init().
This is often because imx3_init_l2x0 lacks a __init
annotation or the annotation of l2x0_init is wrong.

Applied

Sascha

Quoted 21 lines
---
 arch/arm/mach-imx/mm-imx3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mm-imx3.c +1 -1
index 8404ee7..6222151 100644
@@ -76,7 +76,7 @@ static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size,
 	return __arm_ioremap(phys_addr, size, mtype);
 }
 
-void imx3_init_l2x0(void)
+void __init imx3_init_l2x0(void)
 {
 	void __iomem *l2x0_base;
 	void __iomem *clkctl_base;
Signature · 1 line
1.7.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#2 lore raw

PATCH 1/1 ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

Fix the following section mismatch:

WARNING: vmlinux.o(.text+0x11be8): Section mismatch in reference from the function imx3_init_l2x0() to the function .init.text:l2x0_init() The function imx3_init_l2x0() references
the function __init l2x0_init().
This is often because imx3_init_l2x0 lacks a __init
annotation or the annotation of l2x0_init is wrong.

I'm seeing this warning with imx_v6_v7_defconfig build too, and would like to send a fix for -rc right away.

Regards,
Shawn

Quoted 19 lines
---
 arch/arm/mach-imx/mm-imx3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mm-imx3.c +1 -1
index 8404ee7..6222151 100644
@@ -76,7 +76,7 @@ static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size,
 	return __arm_ioremap(phys_addr, size, mtype);
 }
 
-void imx3_init_l2x0(void)
+void __init imx3_init_l2x0(void)
 {
 	void __iomem *l2x0_base;
 	void __iomem *clkctl_base;
Signature · 1 line
1.7.1
#3 lore raw

PATCH 1/1 ARM: mach-imx: mx3: Fix section mismatch in imx3_init_l2x0()

Quoted 9 lines · Shawn Guo
Quoted 8 lines · Fabio Estevam

Fix the following section mismatch:

WARNING: vmlinux.o(.text+0x11be8): Section mismatch in reference from the function imx3_init_l2x0() to the function .init.text:l2x0_init() The function imx3_init_l2x0() references
the function __init l2x0_init().
This is often because imx3_init_l2x0 lacks a __init
annotation or the annotation of l2x0_init is wrong.

Quoted 5 lines
Quoted 1 line

I'm seeing this warning with imx_v6_v7_defconfig build too, and would like to send a fix for -rc right away.

Great, Sascha is taking care of it.

Signature · 2 lines
Regards,
Shawn