[openib-general] [PATCH][7/18] InfiniBand: make more code static

Roland Dreier roland at topspin.com
Wed Jan 12 13:47:50 PST 2005


Make needlessly global code static.

Signed-off-by: Adrian Bunk <bunk at stusta.de>
Signed-off-by: Roland Dreier <roland at topspin.com>

--- linux/drivers/infiniband/ulp/ipoib/ipoib_main.c	(revision 1456)
+++ linux/drivers/infiniband/ulp/ipoib/ipoib_main.c	(revision 1457)
@@ -606,7 +606,7 @@
 	return NETDEV_TX_OK;
 }
 
-struct net_device_stats *ipoib_get_stats(struct net_device *dev)
+static struct net_device_stats *ipoib_get_stats(struct net_device *dev)
 {
 	struct ipoib_dev_priv *priv = netdev_priv(dev);
 
--- linux/drivers/infiniband/ulp/ipoib/ipoib_multicast.c	(revision 1456)
+++ linux/drivers/infiniband/ulp/ipoib/ipoib_multicast.c	(revision 1457)
@@ -44,7 +44,7 @@
 #include "ipoib.h"
 
 #ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
-int mcast_debug_level;
+static int mcast_debug_level;
 
 module_param(mcast_debug_level, int, 0644);
 MODULE_PARM_DESC(mcast_debug_level,
@@ -623,7 +623,7 @@
 	return 0;
 }
 
-int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast)
+static int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast)
 {
 	struct ipoib_dev_priv *priv = netdev_priv(dev);
 	struct ib_sa_mcmember_rec rec = {
--- linux/drivers/infiniband/ulp/ipoib/ipoib_ib.c	(revision 1456)
+++ linux/drivers/infiniband/ulp/ipoib/ipoib_ib.c	(revision 1457)
@@ -357,7 +357,7 @@
 	}
 }
 
-void __ipoib_reap_ah(struct net_device *dev)
+static void __ipoib_reap_ah(struct net_device *dev)
 {
 	struct ipoib_dev_priv *priv = netdev_priv(dev);
 	struct ipoib_ah *ah, *tah;
--- linux/drivers/infiniband/core/cache.c	(revision 1456)
+++ linux/drivers/infiniband/core/cache.c	(revision 1457)
@@ -252,7 +252,7 @@
 	}
 }
 
-void ib_cache_setup_one(struct ib_device *device)
+static void ib_cache_setup_one(struct ib_device *device)
 {
 	int p;
 
@@ -295,7 +295,7 @@
 	kfree(device->cache.gid_cache);
 }
 
-void ib_cache_cleanup_one(struct ib_device *device)
+static void ib_cache_cleanup_one(struct ib_device *device)
 {
 	int p;
 
@@ -311,7 +311,7 @@
 	kfree(device->cache.gid_cache);
 }
 
-struct ib_client cache_client = {
+static struct ib_client cache_client = {
 	.name   = "cache",
 	.add    = ib_cache_setup_one,
 	.remove = ib_cache_cleanup_one




More information about the general mailing list