From: Wei Yongjun Date: Thu, 15 Sep 2016 02:24:13 +0000 (+0000) Subject: net: dsa: bcm_sf2: Fix non static symbol warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e26e5bd518f608ee2023b29429ecd4cd8b6969d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: dsa: bcm_sf2: Fix non static symbol warning 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 Acked-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index 5bf4f3452676..e218887f18b7 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -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,