]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
drivers/net: fix sparse warnings: make symbols static
authorHannes Eder <hannes@hanneseder.net>
Fri, 26 Dec 2008 07:56:45 +0000 (23:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 07:56:45 +0000 (23:56 -0800)
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>
drivers/net/3c523.c
drivers/net/cs89x0.c
drivers/net/eepro.c
drivers/net/plip.c
drivers/net/s2io.c
drivers/net/smc9194.c

index d9c9481a59a57c888e9a7e0a92d20cf5067ff3e3..ff41e1ff56031876862db4a387c45a0dedb5d0b9 100644 (file)
@@ -347,7 +347,7 @@ static int __init check586(struct net_device *dev, unsigned long where, unsigned
  * set iscp at the right place, called by elmc_probe and open586.
  */
 
-void alloc586(struct net_device *dev)
+static void alloc586(struct net_device *dev)
 {
        struct priv *p = netdev_priv(dev);
 
index b063395c4a96779922e0b63f9f2c62f53d5c1690..d548a45d59d563f837b1634335547950210aa043 100644 (file)
@@ -1030,7 +1030,7 @@ skip_this_frame:
 
 #endif /* ALLOW_DMA */
 
-void  __init reset_chip(struct net_device *dev)
+static void __init reset_chip(struct net_device *dev)
 {
 #if !defined(CONFIG_MACH_MX31ADS)
 #if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01)
index 0a984619411b563c41fa4219700bdfb1c0ddddd3..e187c88ae1450329a51da2ba64024dd55da2c3e0 100644 (file)
@@ -1395,7 +1395,7 @@ set_multicast_list(struct net_device *dev)
 #define eeprom_delay() { udelay(40); }
 #define EE_READ_CMD (6 << 6)
 
-int
+static int
 read_eeprom(int ioaddr, int location, struct net_device *dev)
 {
        int i;
index ed8582ea7e54080b3f17102706e595cb15466ee0..0c46d603b8fe99985a558ec771e7d48924480709 100644 (file)
@@ -1017,8 +1017,8 @@ plip_hard_header(struct sk_buff *skb, struct net_device *dev,
        return ret;
 }
 
-int plip_hard_header_cache(const struct neighbour *neigh,
-                           struct hh_cache *hh)
+static int plip_hard_header_cache(const struct neighbour *neigh,
+                                 struct hh_cache *hh)
 {
        int ret;
 
index 512861923c6bcfd82a76c7d6ec27e9d61619af0b..748b4cb3a58a84013faf529ba79bf06328b50b33 100644 (file)
@@ -5113,7 +5113,7 @@ static void s2io_set_multicast(struct net_device *dev)
 /* read from CAM unicast & multicast addresses and store it in
  * def_mac_addr structure
  */
-void do_s2io_store_unicast_mc(struct s2io_nic *sp)
+static void do_s2io_store_unicast_mc(struct s2io_nic *sp)
 {
        int offset;
        u64 mac_addr = 0x0;
index e7cc80f32560af16f9a8a4b990a939e5c20827ad..18d653bbd4e0556dfac549ff02510fa805f41fa0 100644 (file)
@@ -764,7 +764,7 @@ out:
  . interrupt, so an auto-detect routine can detect it, and find the IRQ,
  ------------------------------------------------------------------------
 */
-int __init smc_findirq( int ioaddr )
+static int __init smc_findirq(int ioaddr)
 {
 #ifndef NO_AUTOPROBE
        int     timeout = 20;