net: dsa: bcm_sf2: Fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 02:24:13 +0000 (02:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 08:25:50 +0000 (04:25 -0400)
Fixes the following sparse warning:

drivers/net/dsa/bcm_sf2.c:963:19: warning:
 symbol 'bcm_sf2_io_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c

index 5bf4f34..e218887 100644 (file)
@@ -960,7 +960,7 @@ static int bcm_sf2_core_write64(struct b53_device *dev, u8 page, u8 reg,
        return 0;
 }
 
-struct b53_io_ops bcm_sf2_io_ops = {
+static struct b53_io_ops bcm_sf2_io_ops = {
        .read8  = bcm_sf2_core_read8,
        .read16 = bcm_sf2_core_read16,
        .read32 = bcm_sf2_core_read32,