[PATCH 1/2] ARM: ux500: Silence compiler warnings due to missing ux500_read_asicid() __init

From: Lee Jones
Date: Tue Jun 04 2013 - 11:37:15 EST

WARNING: vmlinux.o(.text.unlikely+0x1e8): Section mismatch in reference from\
the function ux500_read_asicid() to the function .init.text:iotable_init()
The function ux500_read_asicid() references
the function __init iotable_init().
This is often because ux500_read_asicid lacks a __init

Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
arch/arm/mach-ux500/id.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-ux500/id.c b/arch/arm/mach-ux500/id.c
index 0d33d1a..b16e7c1 100644
--- a/arch/arm/mach-ux500/id.c
+++ b/arch/arm/mach-ux500/id.c
@@ -21,7 +21,7 @@

struct dbx500_asic_id dbx500_id;

-static unsigned int ux500_read_asicid(phys_addr_t addr)
+static unsigned int __init ux500_read_asicid(phys_addr_t addr)
phys_addr_t base = addr & ~0xfff;
struct map_desc desc = {

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/