diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-09-16 16:42:21 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-09-21 08:02:00 -0400 |
commit | e4b2ae7a8a11c5d4e0a6e21ba65d4b487a15d3d8 (patch) | |
tree | 950c6b225f1572e7c54f7fabe55ebbffd5262838 | |
parent | e40a3ae1f794a35c4af3746291ed6fedc1fa0f6f (diff) |
gpio: omap: omap_gpio_show_rev is not __init
The probe function calls omap_gpio_show_rev(), which on most
compilers is inlined, but on the old gcc-4.6 is not, causing
a valid warning about the incorrect __init annotation:
WARNING: vmlinux.o(.text+0x40f614): Section mismatch in reference from the function omap_gpio_probe() to the function .init.text:omap_gpio_show_rev()
The function omap_gpio_probe() references
the function __init omap_gpio_show_rev().
This is often because omap_gpio_probe lacks a __init
annotation or the annotation of omap_gpio_show_rev is wrong.
This removes the __init.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-omap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index dbf869fb63ce..22d7d4838265 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -1010,7 +1010,7 @@ static void omap_gpio_set(struct gpio_chip *chip, unsigned offset, int value) | |||
1010 | 1010 | ||
1011 | /*---------------------------------------------------------------------*/ | 1011 | /*---------------------------------------------------------------------*/ |
1012 | 1012 | ||
1013 | static void __init omap_gpio_show_rev(struct gpio_bank *bank) | 1013 | static void omap_gpio_show_rev(struct gpio_bank *bank) |
1014 | { | 1014 | { |
1015 | static bool called; | 1015 | static bool called; |
1016 | u32 rev; | 1016 | u32 rev; |