diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-19 04:08:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 07:26:39 -0400 |
commit | ff51bf841587c75b58d25ed77263158619784dd3 (patch) | |
tree | 85d415536b84c48afe2aea0243f420ac262e1bbd /net/rds/ib.c | |
parent | d0c2b0d265a0f1f92922a99a31def9da582197ac (diff) |
rds: make local functions/variables static
The RDS protocol has lots of functions that should be
declared static. rds_message_get/add_version_extension is
removed since it defined but never used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib.c')
-rw-r--r-- | net/rds/ib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/rds/ib.c b/net/rds/ib.c index b12a3951167d..4123967d4d65 100644 --- a/net/rds/ib.c +++ b/net/rds/ib.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "rds.h" | 42 | #include "rds.h" |
43 | #include "ib.h" | 43 | #include "ib.h" |
44 | 44 | ||
45 | unsigned int fmr_pool_size = RDS_FMR_POOL_SIZE; | 45 | static unsigned int fmr_pool_size = RDS_FMR_POOL_SIZE; |
46 | unsigned int fmr_message_size = RDS_FMR_SIZE + 1; /* +1 allows for unaligned MRs */ | 46 | unsigned int fmr_message_size = RDS_FMR_SIZE + 1; /* +1 allows for unaligned MRs */ |
47 | unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT; | 47 | unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT; |
48 | 48 | ||
@@ -65,7 +65,7 @@ struct list_head rds_ib_devices; | |||
65 | DEFINE_SPINLOCK(ib_nodev_conns_lock); | 65 | DEFINE_SPINLOCK(ib_nodev_conns_lock); |
66 | LIST_HEAD(ib_nodev_conns); | 66 | LIST_HEAD(ib_nodev_conns); |
67 | 67 | ||
68 | void rds_ib_nodev_connect(void) | 68 | static void rds_ib_nodev_connect(void) |
69 | { | 69 | { |
70 | struct rds_ib_connection *ic; | 70 | struct rds_ib_connection *ic; |
71 | 71 | ||
@@ -75,7 +75,7 @@ void rds_ib_nodev_connect(void) | |||
75 | spin_unlock(&ib_nodev_conns_lock); | 75 | spin_unlock(&ib_nodev_conns_lock); |
76 | } | 76 | } |
77 | 77 | ||
78 | void rds_ib_dev_shutdown(struct rds_ib_device *rds_ibdev) | 78 | static void rds_ib_dev_shutdown(struct rds_ib_device *rds_ibdev) |
79 | { | 79 | { |
80 | struct rds_ib_connection *ic; | 80 | struct rds_ib_connection *ic; |
81 | unsigned long flags; | 81 | unsigned long flags; |
@@ -118,7 +118,7 @@ void rds_ib_dev_put(struct rds_ib_device *rds_ibdev) | |||
118 | queue_work(rds_wq, &rds_ibdev->free_work); | 118 | queue_work(rds_wq, &rds_ibdev->free_work); |
119 | } | 119 | } |
120 | 120 | ||
121 | void rds_ib_add_one(struct ib_device *device) | 121 | static void rds_ib_add_one(struct ib_device *device) |
122 | { | 122 | { |
123 | struct rds_ib_device *rds_ibdev; | 123 | struct rds_ib_device *rds_ibdev; |
124 | struct ib_device_attr *dev_attr; | 124 | struct ib_device_attr *dev_attr; |
@@ -229,7 +229,7 @@ struct rds_ib_device *rds_ib_get_client_data(struct ib_device *device) | |||
229 | * | 229 | * |
230 | * This can be called at any time and can be racing with any other RDS path. | 230 | * This can be called at any time and can be racing with any other RDS path. |
231 | */ | 231 | */ |
232 | void rds_ib_remove_one(struct ib_device *device) | 232 | static void rds_ib_remove_one(struct ib_device *device) |
233 | { | 233 | { |
234 | struct rds_ib_device *rds_ibdev; | 234 | struct rds_ib_device *rds_ibdev; |
235 | 235 | ||