From 34abf9ed73f2cf4fcc69eefd7e0af225cf9671a8 Mon Sep 17 00:00:00 2001 From: Tatyana Nikolova Date: Fri, 18 Mar 2016 10:38:33 -0500 Subject: i40iw: Replace the obsolete crypto hash interface with shash This patch replaces the obsolete crypto hash interface with shash and resolves a build failure after merge of the rdma tree which is caused by the removal of crypto hash interface Removing CRYPTO_ALG_ASYNC from crypto_alloc_shash(), because it is by definition sync only Signed-off-by: Mustafa Ismail Signed-off-by: Tatyana Nikolova Acked-by: Herbert Xu Signed-off-by: Doug Ledford --- drivers/infiniband/hw/i40iw/i40iw_puda.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/infiniband/hw/i40iw/i40iw_puda.c') diff --git a/drivers/infiniband/hw/i40iw/i40iw_puda.c b/drivers/infiniband/hw/i40iw/i40iw_puda.c index ae9971f93ecd..8eb400d8a7a0 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_puda.c +++ b/drivers/infiniband/hw/i40iw/i40iw_puda.c @@ -729,7 +729,7 @@ void i40iw_puda_dele_resources(struct i40iw_sc_dev *dev, switch (rsrc->completion) { case PUDA_HASH_CRC_COMPLETE: - i40iw_free_hash_desc(&rsrc->hash_desc); + i40iw_free_hash_desc(rsrc->hash_desc); case PUDA_QP_CREATED: do { if (reset) @@ -1142,7 +1142,7 @@ static enum i40iw_status_code i40iw_ieq_handle_partial(struct i40iw_puda_rsrc *i crcptr = txbuf->data + fpdu_len - 4; mpacrc = *(u32 *)crcptr; if (ieq->check_crc) { - status = i40iw_ieq_check_mpacrc(&ieq->hash_desc, txbuf->data, + status = i40iw_ieq_check_mpacrc(ieq->hash_desc, txbuf->data, (fpdu_len - 4), mpacrc); if (status) { i40iw_debug(ieq->dev, I40IW_DEBUG_IEQ, @@ -1210,7 +1210,7 @@ static enum i40iw_status_code i40iw_ieq_process_buf(struct i40iw_puda_rsrc *ieq, crcptr = datap + fpdu_len - 4; mpacrc = *(u32 *)crcptr; if (ieq->check_crc) - ret = i40iw_ieq_check_mpacrc(&ieq->hash_desc, + ret = i40iw_ieq_check_mpacrc(ieq->hash_desc, datap, fpdu_len - 4, mpacrc); if (ret) { status = I40IW_ERR_MPA_CRC; -- cgit v1.2.3-59-g8ed1b