ARM: pxa: avoid section mismatch warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 21:58:39 +0000 (22:58 +0100)
committerOlof Johansson <olof@lixom.net>
Wed, 12 Dec 2018 21:56:14 +0000 (13:56 -0800)
WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the function littleton_init_lcd() to the function .init.text:pxa_set_fb_info()
The function littleton_init_lcd() references
the function __init pxa_set_fb_info().
This is often because littleton_init_lcd lacks a __init
annotation or the annotation of pxa_set_fb_info is wrong.

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

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

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-pxa/cm-x300.c
arch/arm/mach-pxa/littleton.c
arch/arm/mach-pxa/zeus.c

index c5c0ab8ac9f91991a0cf6791ebb065cd7e055395..024c1fbcc55aee5816526b5574528e6c9532a3aa 100644 (file)
@@ -558,7 +558,7 @@ static struct pxa3xx_u2d_platform_data cm_x300_u2d_platform_data = {
        .exit           = cm_x300_u2d_exit,
 };
 
-static void cm_x300_init_u2d(void)
+static void __init cm_x300_init_u2d(void)
 {
        pxa3xx_set_u2d_info(&cm_x300_u2d_platform_data);
 }
index 9e132b3e48c68ef767ef7055b8d37cddc9d6453c..9960ea158829b88b2bf572b4979f27bc0f53f5ac 100644 (file)
@@ -184,7 +184,7 @@ static struct pxafb_mach_info littleton_lcd_info = {
        .lcd_conn               = LCD_COLOR_TFT_16BPP,
 };
 
-static void littleton_init_lcd(void)
+static void __init littleton_init_lcd(void)
 {
        pxa_set_fb_info(NULL, &littleton_lcd_info);
 }
index d53ea12fc76662cad69d5184472f9cfad3e5bf07..54a32f0433a2e8531bfc5d3a16099db3a7cf7041 100644 (file)
@@ -576,7 +576,7 @@ static struct pxaohci_platform_data zeus_ohci_platform_data = {
        .flags          = ENABLE_PORT_ALL | POWER_SENSE_LOW,
 };
 
-static void zeus_register_ohci(void)
+static void __init zeus_register_ohci(void)
 {
        /* Port 2 is shared between host and client interface. */
        UP2OCR = UP2OCR_HXOE | UP2OCR_HXS | UP2OCR_DMPDE | UP2OCR_DPPDE;