From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5D6EAC334 for ; Thu, 18 Feb 2016 11:58:06 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 18 Feb 2016 02:58:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,464,1449561600"; d="scan'208";a="888562469" Received: from sie-lab-212-151.ir.intel.com (HELO silpixa00389525.ir.intel.com) ([10.237.212.151]) by orsmga001.jf.intel.com with ESMTP; 18 Feb 2016 02:58:02 -0800 From: John Griffin To: dev@dpdk.org Date: Thu, 18 Feb 2016 10:57:32 +0000 Message-Id: <1455793052-45947-1-git-send-email-john.griffin@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1455615876-29879-1-git-send-email-john.griffin@intel.com> References: <1455615876-29879-1-git-send-email-john.griffin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] qat:fix build on 32-bit systems X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 10:58:06 -0000 Fixing build on 32-bit systems on quick assist driver - for example: drivers/crypto/qat/qat_crypto.c: In function ‘qat_alg_write_mbuf_entry’: drivers/crypto/qat/qat_crypto.c:408:34: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") Signed-off-by: John Griffin Acked-by: Pablo de Lara --- v1->v2: - Corrected subject text and included build failure. drivers/crypto/qat/qat_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c index 129e96d..828756b 100644 --- a/drivers/crypto/qat/qat_crypto.c +++ b/drivers/crypto/qat/qat_crypto.c @@ -342,7 +342,7 @@ qat_crypto_pkt_rx_burst(void *qp, struct rte_mbuf **rx_pkts, uint16_t nb_pkts) while (*(uint32_t *)resp_msg != ADF_RING_EMPTY_SIG && msg_counter != nb_pkts) { - rx_mbuf = (struct rte_mbuf *)(resp_msg->opaque_data); + rx_mbuf = (struct rte_mbuf *)(uintptr_t)(resp_msg->opaque_data); ol = rte_pktmbuf_offload_get(rx_mbuf, RTE_PKTMBUF_OL_CRYPTO); if (ICP_QAT_FW_COMN_STATUS_FLAG_OK != @@ -405,7 +405,7 @@ qat_alg_write_mbuf_entry(struct rte_mbuf *mbuf, uint8_t *out_msg) ctx = (struct qat_session *)ol->op.crypto.session->_private; qat_req = (struct icp_qat_fw_la_bulk_req *)out_msg; *qat_req = ctx->fw_req; - qat_req->comn_mid.opaque_data = (uint64_t)mbuf; + qat_req->comn_mid.opaque_data = (uint64_t)(uintptr_t)mbuf; /* * The following code assumes: -- 2.1.0