OSDN Git Service

w90p910_ether: remove incorrect __init annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:45:07 +0000 (21:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:00 +0000 (09:51 +0100)
commit2cd0c6f8d050ea68ed482f16a574c864fcb95b23
treec6e0574432e28dd38e95fc3ff40de9ed572053a5
parent997cb5039dba909f06d70797981e67c7c197d5b9
w90p910_ether: remove incorrect __init annotation

[ Upstream commit 51367e423c6501a26e67d91a655d2bc892303462 ]

The get_mac_address() function is normally inline, but when it is
not, we get a warning that this configuration is broken:

WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function w90p910_ether_setup() to the function .init.text:get_mac_address()
The function w90p910_ether_setup() references
the function __init get_mac_address().
This is often because w90p910_ether_setup lacks a __init

Remove the __init to make it always do the right thing.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/nuvoton/w90p910_ether.c