[openib-general] [PATCH] for-2.6.21 Declare iwch_ev_dispatch in iwch.h

Steve Wise swise at opengridcomputing.com
Fri Feb 9 08:49:58 PST 2007


Declare iwch_ev_dispatch in iwch.h

Remove the extern declaration from iwch.c and put it in iwch.h

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 drivers/infiniband/hw/cxgb3/iwch.c |    2 --
 drivers/infiniband/hw/cxgb3/iwch.h |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch.c b/drivers/infiniband/hw/cxgb3/iwch.c
index c353a9b..4611afa 100644
--- a/drivers/infiniband/hw/cxgb3/iwch.c
+++ b/drivers/infiniband/hw/cxgb3/iwch.c
@@ -162,8 +162,6 @@ static void close_rnic_dev(struct t3cdev
 	mutex_unlock(&dev_mutex);
 }
 
-extern void iwch_ev_dispatch(struct cxio_rdev *rdev_p, struct sk_buff *skb);
-
 static int __init iwch_init_module(void)
 {
 	int err;
diff --git a/drivers/infiniband/hw/cxgb3/iwch.h b/drivers/infiniband/hw/cxgb3/iwch.h
index 29cf2e8..6517ef8 100644
--- a/drivers/infiniband/hw/cxgb3/iwch.h
+++ b/drivers/infiniband/hw/cxgb3/iwch.h
@@ -172,4 +172,6 @@ static inline void remove_handle(struct 
 
 extern struct cxgb3_client t3c_client;
 extern cxgb3_cpl_handler_func t3c_handlers[NUM_CPL_CMDS];
+extern void iwch_ev_dispatch(struct cxio_rdev *rdev_p, struct sk_buff *skb);
+
 #endif





More information about the general mailing list