aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHal Rosenstock <halr@voltaire.com>2005-08-15 17:16:36 -0400
committerRoland Dreier <rolandd@cisco.com>2005-08-26 23:37:36 -0400
commit5dd2ce1200f4b12687d74de89a527f99e16c344e (patch)
tree42df0cb1c801b60f8e4e3604bd736bddae8de641 /drivers/infiniband
parent7f9f2dba729cee6ea10596ccb07447d467705b08 (diff)
[PATCH] IB: Fix ib_mad_thread_completion_handler declaration
Change ib_mad_thread_completion_handler to conform to ib_comp_handler declaration. Signed-off-by: Hal Rosenstock <halr@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/mad.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
index 214493cb3a0b..a4a4d9c1eef3 100644
--- a/drivers/infiniband/core/mad.c
+++ b/drivers/infiniband/core/mad.c
@@ -2296,7 +2296,7 @@ static void timeout_sends(void *data)
2296 spin_unlock_irqrestore(&mad_agent_priv->lock, flags); 2296 spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
2297} 2297}
2298 2298
2299static void ib_mad_thread_completion_handler(struct ib_cq *cq) 2299static void ib_mad_thread_completion_handler(struct ib_cq *cq, void *arg)
2300{ 2300{
2301 struct ib_mad_port_private *port_priv = cq->cq_context; 2301 struct ib_mad_port_private *port_priv = cq->cq_context;
2302 2302
@@ -2576,8 +2576,7 @@ static int ib_mad_port_open(struct ib_device *device,
2576 2576
2577 cq_size = (IB_MAD_QP_SEND_SIZE + IB_MAD_QP_RECV_SIZE) * 2; 2577 cq_size = (IB_MAD_QP_SEND_SIZE + IB_MAD_QP_RECV_SIZE) * 2;
2578 port_priv->cq = ib_create_cq(port_priv->device, 2578 port_priv->cq = ib_create_cq(port_priv->device,
2579 (ib_comp_handler) 2579 ib_mad_thread_completion_handler,
2580 ib_mad_thread_completion_handler,
2581 NULL, port_priv, cq_size); 2580 NULL, port_priv, cq_size);
2582 if (IS_ERR(port_priv->cq)) { 2581 if (IS_ERR(port_priv->cq)) {
2583 printk(KERN_ERR PFX "Couldn't create ib_mad CQ\n"); 2582 printk(KERN_ERR PFX "Couldn't create ib_mad CQ\n");