summaryrefslogtreecommitdiff
path: root/drivers/crypto/qat/qat_common/qat_algs.c
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2014-06-25 02:19:24 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-06-26 10:49:29 +0400
commitbce3cc61d3d3e31cb7cd054bb35a3bdd0ec36c71 (patch)
treedb12024f78497c4f1e836a976b838112f0d3b5ba /drivers/crypto/qat/qat_common/qat_algs.c
parentc0eedf803467620fd3bdafccdd761990f6bd42e1 (diff)
downloadlinux-bce3cc61d3d3e31cb7cd054bb35a3bdd0ec36c71.tar.xz
crypto: qat - Fix random config build warnings
Fix random config build warnings: Implicit-function-declaration ‘__raw_writel’ Cast to pointer from integer of different size [-Wint-to-pointer-cast] Reviewed-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/qat_algs.c')
-rw-r--r--drivers/crypto/qat/qat_common/qat_algs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_algs.c b/drivers/crypto/qat/qat_common/qat_algs.c
index 193b753d6a0a..c4e80104dfe9 100644
--- a/drivers/crypto/qat/qat_common/qat_algs.c
+++ b/drivers/crypto/qat/qat_common/qat_algs.c
@@ -745,7 +745,7 @@ void qat_alg_callback(void *resp)
{
struct icp_qat_fw_la_resp *qat_resp = resp;
struct qat_crypto_request *qat_req =
- (void *)(dma_addr_t)qat_resp->opaque_data;
+ (void *)(__force long)qat_resp->opaque_data;
struct qat_alg_session_ctx *ctx = qat_req->ctx;
struct qat_crypto_instance *inst = ctx->inst;
struct aead_request *areq = qat_req->areq;
@@ -779,7 +779,7 @@ static int qat_alg_dec(struct aead_request *areq)
*msg = ctx->dec_fw_req_tmpl;
qat_req->ctx = ctx;
qat_req->areq = areq;
- qat_req->req.comn_mid.opaque_data = (uint64_t)(dma_addr_t)qat_req;
+ qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req;
qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp;
qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp;
cipher_param = (void *)&qat_req->req.serv_specif_rqpars;
@@ -822,7 +822,7 @@ static int qat_alg_enc_internal(struct aead_request *areq, uint8_t *iv,
*msg = ctx->enc_fw_req_tmpl;
qat_req->ctx = ctx;
qat_req->areq = areq;
- qat_req->req.comn_mid.opaque_data = (uint64_t)(dma_addr_t)qat_req;
+ qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req;
qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp;
qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp;
cipher_param = (void *)&qat_req->req.serv_specif_rqpars;