lkml.org 
[lkml]   [2005]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][7/18] InfiniBand: make more code static
Make needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Roland Dreier <roland@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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.095 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site