Commit d8628f05 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[PATCH] InfiniBand: make more code static

Make needlessly global code static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 129791bd
......@@ -252,7 +252,7 @@ static void ib_cache_event(struct ib_event_handler *handler,
}
}
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 @@ void ib_cache_setup_one(struct ib_device *device)
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 @@ void ib_cache_cleanup_one(struct ib_device *device)
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
......
......@@ -357,7 +357,7 @@ void ipoib_send(struct net_device *dev, struct sk_buff *skb,
}
}
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;
......
......@@ -606,7 +606,7 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
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);
......
......@@ -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 @@ int ipoib_mcast_stop_thread(struct net_device *dev)
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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment