]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
w90p910_ether: remove incorrect __init annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:45:07 +0000 (21:45 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit5bf5bfe1144cdd955ad5183c5da404379eb54032
tree461b08d1c34edbfc4a599d70b83097e25d172287
parent51a34d25cdc4b304fe963193ca0dbcefd0cca410
w90p910_ether: remove incorrect __init annotation

BugLink: https://bugs.launchpad.net/bugs/1837477
[ 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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/nuvoton/w90p910_ether.c