aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/user_mad.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-01-04 14:15:58 +0100
committerDoug Ledford <dledford@redhat.com>2016-01-19 15:25:36 -0500
commitca281265c02f342fed4927b4e98e377d9318881f (patch)
tree03c8c6e83e4b22502717921062059bd2e10778e2 /drivers/infiniband/core/user_mad.c
parentinfiniband: Replace memset with eth_zero_addr (diff)
downloadlinux-dev-ca281265c02f342fed4927b4e98e377d9318881f.tar.xz
linux-dev-ca281265c02f342fed4927b4e98e377d9318881f.zip
IB/mad: pass ib_mad_send_buf explicitly to the recv_handler
Stop abusing wr_id and just pass the parameter explicitly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hal Rosenstock <hal@mellanox.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/user_mad.c')
-rw-r--r--drivers/infiniband/core/user_mad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index 57f281f8d686..415a3185cde7 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -210,6 +210,7 @@ static void send_handler(struct ib_mad_agent *agent,
}
static void recv_handler(struct ib_mad_agent *agent,
+ struct ib_mad_send_buf *send_buf,
struct ib_mad_recv_wc *mad_recv_wc)
{
struct ib_umad_file *file = agent->context;