OSDN Git Service

ARM: ks8695: fix section mismatch warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 21:58:38 +0000 (22:58 +0100)
committerOlof Johansson <olof@lixom.net>
Wed, 12 Dec 2018 21:56:36 +0000 (13:56 -0800)
WARNING: vmlinux.o(.text+0x13250): Section mismatch in reference from the function acs5k_i2c_init() to the (unknown reference) .init.data:(unknown)
The function acs5k_i2c_init() references
the (unknown reference) __initdata (unknown).
This is often because acs5k_i2c_init lacks a __initdata
annotation or the annotation of (unknown) is wrong.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-ks8695/board-acs5k.c

index ef835d8..5783062 100644 (file)
@@ -100,7 +100,7 @@ static struct i2c_board_info acs5k_i2c_devs[] __initdata = {
        },
 };
 
-static void acs5k_i2c_init(void)
+static void __init acs5k_i2c_init(void)
 {
        /* The gpio interface */
        gpiod_add_lookup_table(&acs5k_i2c_gpiod_table);