aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-26 02:56:45 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 02:56:45 -0500
commitdac499f912abd5838fa3501efdcd0f23d5f4fc29 (patch)
treee637b9941f223ebf8b4279520b5cc35081d8ca21 /drivers/net
parenta08b32df1417146b1a4c43e641ec1177da51896c (diff)
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/3c523.c2
-rw-r--r--drivers/net/cs89x0.c2
-rw-r--r--drivers/net/eepro.c2
-rw-r--r--drivers/net/plip.c4
-rw-r--r--drivers/net/s2io.c2
-rw-r--r--drivers/net/smc9194.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c
index d9c9481a59a5..ff41e1ff5603 100644
--- a/drivers/net/3c523.c
+++ b/drivers/net/3c523.c
@@ -347,7 +347,7 @@ static int __init check586(struct net_device *dev, unsigned long where, unsigned
347 * set iscp at the right place, called by elmc_probe and open586. 347 * set iscp at the right place, called by elmc_probe and open586.
348 */ 348 */
349 349
350void alloc586(struct net_device *dev) 350static void alloc586(struct net_device *dev)
351{ 351{
352 struct priv *p = netdev_priv(dev); 352 struct priv *p = netdev_priv(dev);
353 353
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c
index b063395c4a96..d548a45d59d5 100644
--- a/drivers/net/cs89x0.c
+++ b/drivers/net/cs89x0.c
@@ -1030,7 +1030,7 @@ skip_this_frame:
1030 1030
1031#endif /* ALLOW_DMA */ 1031#endif /* ALLOW_DMA */
1032 1032
1033void __init reset_chip(struct net_device *dev) 1033static void __init reset_chip(struct net_device *dev)
1034{ 1034{
1035#if !defined(CONFIG_MACH_MX31ADS) 1035#if !defined(CONFIG_MACH_MX31ADS)
1036#if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01) 1036#if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01)
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c
index 0a984619411b..e187c88ae145 100644
--- a/drivers/net/eepro.c
+++ b/drivers/net/eepro.c
@@ -1395,7 +1395,7 @@ set_multicast_list(struct net_device *dev)
1395#define eeprom_delay() { udelay(40); } 1395#define eeprom_delay() { udelay(40); }
1396#define EE_READ_CMD (6 << 6) 1396#define EE_READ_CMD (6 << 6)
1397 1397
1398int 1398static int
1399read_eeprom(int ioaddr, int location, struct net_device *dev) 1399read_eeprom(int ioaddr, int location, struct net_device *dev)
1400{ 1400{
1401 int i; 1401 int i;
diff --git a/drivers/net/plip.c b/drivers/net/plip.c
index ed8582ea7e54..0c46d603b8fe 100644
--- a/drivers/net/plip.c
+++ b/drivers/net/plip.c
@@ -1017,8 +1017,8 @@ plip_hard_header(struct sk_buff *skb, struct net_device *dev,
1017 return ret; 1017 return ret;
1018} 1018}
1019 1019
1020int plip_hard_header_cache(const struct neighbour *neigh, 1020static int plip_hard_header_cache(const struct neighbour *neigh,
1021 struct hh_cache *hh) 1021 struct hh_cache *hh)
1022{ 1022{
1023 int ret; 1023 int ret;
1024 1024
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index 512861923c6b..748b4cb3a58a 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -5113,7 +5113,7 @@ static void s2io_set_multicast(struct net_device *dev)
5113/* read from CAM unicast & multicast addresses and store it in 5113/* read from CAM unicast & multicast addresses and store it in
5114 * def_mac_addr structure 5114 * def_mac_addr structure
5115 */ 5115 */
5116void do_s2io_store_unicast_mc(struct s2io_nic *sp) 5116static void do_s2io_store_unicast_mc(struct s2io_nic *sp)
5117{ 5117{
5118 int offset; 5118 int offset;
5119 u64 mac_addr = 0x0; 5119 u64 mac_addr = 0x0;
diff --git a/drivers/net/smc9194.c b/drivers/net/smc9194.c
index e7cc80f32560..18d653bbd4e0 100644
--- a/drivers/net/smc9194.c
+++ b/drivers/net/smc9194.c
@@ -764,7 +764,7 @@ out:
764 . interrupt, so an auto-detect routine can detect it, and find the IRQ, 764 . interrupt, so an auto-detect routine can detect it, and find the IRQ,
765 ------------------------------------------------------------------------ 765 ------------------------------------------------------------------------
766*/ 766*/
767int __init smc_findirq( int ioaddr ) 767static int __init smc_findirq(int ioaddr)
768{ 768{
769#ifndef NO_AUTOPROBE 769#ifndef NO_AUTOPROBE
770 int timeout = 20; 770 int timeout = 20;