net: dsa: mv88e6xxx: fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 18 Oct 2016 15:53:37 +0000 (15:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 18:26:00 +0000 (14:26 -0400)
Fixes the following sparse warning:

drivers/net/dsa/mv88e6xxx/chip.c:2866:5: warning:
 symbol 'mv88e6xxx_g1_set_switch_mac' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c

index ac032977b16c1c28396ea8d4ee77da8c9e659bb2..157360f250695bd083148969e8c08bbed23b9dd8 100644 (file)
@@ -2863,7 +2863,7 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
        return mv88e6xxx_port_write(chip, port, PORT_DEFAULT_VLAN, 0x0000);
 }
 
-int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr)
+static int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr)
 {
        int err;