net: dsa: bcm_sf2: Fix non static symbol warning
PATCH 1/1 net: dsa: bcm_sf2: Fix non static symbol warning
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/net/dsa/bcm_sf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/bcm_sf2.c +1 -1
@@ -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,
2016-09-14 19:24 GMT-07:00 Wei Yongjun <[email protected]>:
Quoted 8 lines
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Acked-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
From: Wei Yongjun <[email protected]>
Date: Thu, 15 Sep 2016 02:24:13 +0000
Quoted 8 lines
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Applied.