diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-02-21 05:52:49 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-02-23 16:10:43 -0500 |
commit | 2b540355cd2f46c5445030995e72c4b4fb2b775e (patch) | |
tree | 242a6e63bc0644dae6bb4a413d737d776f88a9d6 /drivers/infiniband/hw/cxgb3/iwch_cm.c | |
parent | 1836854f25b1bc63766bff06aeeb83d2a602b050 (diff) |
RDMA/cxgb3: cleanups
- don't mark static functions in C files as inline - gcc should know
best whether inlining makes sense
- never compile the unused cxio_dbg.c
- make the following needlessly global functions static:
- cxio_hal.c: cxio_hal_clear_qp_ctx()
- iwch_provider.c: iwch_get_qp()
- remove the following unused global functions:
- cxio_hal.c: cxio_allocate_stag()
- cxio_resource.: cxio_hal_get_rhdl()
- cxio_resource.: cxio_hal_put_rhdl()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_cm.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_cm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c index e5442e34b788..b9274e1b3170 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cm.c +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c | |||
@@ -209,8 +209,7 @@ static enum iwch_ep_state state_read(struct iwch_ep_common *epc) | |||
209 | return state; | 209 | return state; |
210 | } | 210 | } |
211 | 211 | ||
212 | static inline void __state_set(struct iwch_ep_common *epc, | 212 | static void __state_set(struct iwch_ep_common *epc, enum iwch_ep_state new) |
213 | enum iwch_ep_state new) | ||
214 | { | 213 | { |
215 | epc->state = new; | 214 | epc->state = new; |
216 | } | 215 | } |
@@ -1459,7 +1458,7 @@ static int peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) | |||
1459 | /* | 1458 | /* |
1460 | * Returns whether an ABORT_REQ_RSS message is a negative advice. | 1459 | * Returns whether an ABORT_REQ_RSS message is a negative advice. |
1461 | */ | 1460 | */ |
1462 | static inline int is_neg_adv_abort(unsigned int status) | 1461 | static int is_neg_adv_abort(unsigned int status) |
1463 | { | 1462 | { |
1464 | return status == CPL_ERR_RTX_NEG_ADVICE || | 1463 | return status == CPL_ERR_RTX_NEG_ADVICE || |
1465 | status == CPL_ERR_PERSIST_NEG_ADVICE; | 1464 | status == CPL_ERR_PERSIST_NEG_ADVICE; |