Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net: fix sparse warnings: make symbols static

Fix this sparse warnings:

drivers/net/3c523.c:350:6: warning: symbol 'alloc586' was not declared. Should it be static?
drivers/net/cs89x0.c:1029:14: warning: symbol 'reset_chip' was not declared. Should it be static?
drivers/net/eepro.c:1399:1: warning: symbol 'read_eeprom' was not declared. Should it be static?
drivers/net/plip.c:1020:5: warning: symbol 'plip_hard_header_cache' was not declared. Should it be static?
drivers/net/s2io.c:5116:6: warning: symbol 'do_s2io_store_unicast_mc' was not declared. Should it be static?
drivers/net/smc9194.c:767:12: warning: symbol 'smc_findirq' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Hannes Eder and committed by
David S. Miller
dac499f9 a08b32df

+7 -7
+1 -1
drivers/net/3c523.c
··· 347 347 * set iscp at the right place, called by elmc_probe and open586. 348 348 */ 349 349 350 - void alloc586(struct net_device *dev) 350 + static void alloc586(struct net_device *dev) 351 351 { 352 352 struct priv *p = netdev_priv(dev); 353 353
+1 -1
drivers/net/cs89x0.c
··· 1030 1030 1031 1031 #endif /* ALLOW_DMA */ 1032 1032 1033 - void __init reset_chip(struct net_device *dev) 1033 + static void __init reset_chip(struct net_device *dev) 1034 1034 { 1035 1035 #if !defined(CONFIG_MACH_MX31ADS) 1036 1036 #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01)
+1 -1
drivers/net/eepro.c
··· 1395 1395 #define eeprom_delay() { udelay(40); } 1396 1396 #define EE_READ_CMD (6 << 6) 1397 1397 1398 - int 1398 + static int 1399 1399 read_eeprom(int ioaddr, int location, struct net_device *dev) 1400 1400 { 1401 1401 int i;
+2 -2
drivers/net/plip.c
··· 1017 1017 return ret; 1018 1018 } 1019 1019 1020 - int plip_hard_header_cache(const struct neighbour *neigh, 1021 - struct hh_cache *hh) 1020 + static int plip_hard_header_cache(const struct neighbour *neigh, 1021 + struct hh_cache *hh) 1022 1022 { 1023 1023 int ret; 1024 1024
+1 -1
drivers/net/s2io.c
··· 5113 5113 /* read from CAM unicast & multicast addresses and store it in 5114 5114 * def_mac_addr structure 5115 5115 */ 5116 - void do_s2io_store_unicast_mc(struct s2io_nic *sp) 5116 + static void do_s2io_store_unicast_mc(struct s2io_nic *sp) 5117 5117 { 5118 5118 int offset; 5119 5119 u64 mac_addr = 0x0;
+1 -1
drivers/net/smc9194.c
··· 764 764 . interrupt, so an auto-detect routine can detect it, and find the IRQ, 765 765 ------------------------------------------------------------------------ 766 766 */ 767 - int __init smc_findirq( int ioaddr ) 767 + static int __init smc_findirq(int ioaddr) 768 768 { 769 769 #ifndef NO_AUTOPROBE 770 770 int timeout = 20;