]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: omap_gpio_show_rev is not __init
authorArnd Bergmann <arnd@arndb.de>
Sat, 16 Sep 2017 20:42:21 +0000 (22:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Sep 2017 12:02:00 +0000 (14:02 +0200)
commit6ebb52ccc17f4debab76baa79fbf3e61773a0dc1
tree950c6b225f1572e7c54f7fabe55ebbffd5262838
parent42a202a1e0b09dc533827f7c168e1c9f2e110abc
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>
drivers/gpio/gpio-omap.c