aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2014-06-24 18:19:24 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-06-26 02:49:29 -0400
commitbce3cc61d3d3e31cb7cd054bb35a3bdd0ec36c71 (patch)
treedb12024f78497c4f1e836a976b838112f0d3b5ba /drivers/crypto
parentc0eedf803467620fd3bdafccdd761990f6bd42e1 (diff)
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')
-rw-r--r--drivers/crypto/qat/qat_common/adf_accel_devices.h1
-rw-r--r--drivers/crypto/qat/qat_common/qat_algs.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_accel_devices.h b/drivers/crypto/qat/qat_common/adf_accel_devices.h
index f3206d9a41ab..9282381b03ce 100644
--- a/drivers/crypto/qat/qat_common/adf_accel_devices.h
+++ b/drivers/crypto/qat/qat_common/adf_accel_devices.h
@@ -50,6 +50,7 @@
50#include <linux/atomic.h> 50#include <linux/atomic.h>
51#include <linux/list.h> 51#include <linux/list.h>
52#include <linux/proc_fs.h> 52#include <linux/proc_fs.h>
53#include <linux/io.h>
53#include "adf_cfg_common.h" 54#include "adf_cfg_common.h"
54 55
55#define PCI_VENDOR_ID_INTEL 0x8086 56#define PCI_VENDOR_ID_INTEL 0x8086
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)
745{ 745{
746 struct icp_qat_fw_la_resp *qat_resp = resp; 746 struct icp_qat_fw_la_resp *qat_resp = resp;
747 struct qat_crypto_request *qat_req = 747 struct qat_crypto_request *qat_req =
748 (void *)(dma_addr_t)qat_resp->opaque_data; 748 (void *)(__force long)qat_resp->opaque_data;
749 struct qat_alg_session_ctx *ctx = qat_req->ctx; 749 struct qat_alg_session_ctx *ctx = qat_req->ctx;
750 struct qat_crypto_instance *inst = ctx->inst; 750 struct qat_crypto_instance *inst = ctx->inst;
751 struct aead_request *areq = qat_req->areq; 751 struct aead_request *areq = qat_req->areq;
@@ -779,7 +779,7 @@ static int qat_alg_dec(struct aead_request *areq)
779 *msg = ctx->dec_fw_req_tmpl; 779 *msg = ctx->dec_fw_req_tmpl;
780 qat_req->ctx = ctx; 780 qat_req->ctx = ctx;
781 qat_req->areq = areq; 781 qat_req->areq = areq;
782 qat_req->req.comn_mid.opaque_data = (uint64_t)(dma_addr_t)qat_req; 782 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req;
783 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; 783 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp;
784 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; 784 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp;
785 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; 785 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,
822 *msg = ctx->enc_fw_req_tmpl; 822 *msg = ctx->enc_fw_req_tmpl;
823 qat_req->ctx = ctx; 823 qat_req->ctx = ctx;
824 qat_req->areq = areq; 824 qat_req->areq = areq;
825 qat_req->req.comn_mid.opaque_data = (uint64_t)(dma_addr_t)qat_req; 825 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req;
826 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; 826 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp;
827 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; 827 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp;
828 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; 828 cipher_param = (void *)&qat_req->req.serv_specif_rqpars;