]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
w90p910_ether: remove incorrect __init annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:45:07 +0000 (21:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 22:42:51 +0000 (14:42 -0800)
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>
drivers/net/ethernet/nuvoton/w90p910_ether.c

index 052b3d2c07a1222b7f902477f30d8eef5a75ab22..c662c6f5bee340f4a0b73e09ae36c7eb4bc878d3 100644 (file)
@@ -912,7 +912,7 @@ static const struct net_device_ops w90p910_ether_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
 };
 
-static void __init get_mac_address(struct net_device *dev)
+static void get_mac_address(struct net_device *dev)
 {
        struct w90p910_ether *ether = netdev_priv(dev);
        struct platform_device *pdev;