From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F88BA0487 for ; Mon, 1 Jul 2019 20:04:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3F5C41B99D; Mon, 1 Jul 2019 20:04:13 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4AEEC1B974 for ; Mon, 1 Jul 2019 20:04:12 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x61HxnJS010399; Mon, 1 Jul 2019 11:04:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=E/tyNcUfwue/bo7WfYKTkDC8FM3oBjfOPRe8DzDWbMc=; b=P+j2DSwtrO+93ejtV7eWJvFup1fa88zENDp6CqYv4Gm+gp0YqsiIK9/uIVrl+3VPbIbo 9Q67fRCt/L3FFh3eJCHRxER6UYSubDyaK6CGvqqUNHi7SMVIOlbLj7RneEXfmHkq/5AQ hiK/0XYo1iCexx/mEahmGFmfmY7BA/FupOf1sl4sc1IimhqpOm/WXBV6RTsKRMKglZn8 8Ub87+LuuSd235o4HLL9GpuPdSCGH6leH3Vl+3fNbaT6Ktjj5yNRVoWuknfc6bzMuUDF rqkP5lI3Q1do295M2x6V4nvMFVR+Z3T6j/Tz/3d+0FDAaI2D33DoddH1gwkVqtQVJVdW AQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2tfppdg4cx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 01 Jul 2019 11:04:11 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 1 Jul 2019 11:04:10 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Mon, 1 Jul 2019 11:04:10 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 61E073F703F; Mon, 1 Jul 2019 11:04:09 -0700 (PDT) From: To: CC: , Amit Gupta Date: Mon, 1 Jul 2019 23:33:46 +0530 Message-ID: <20190701180346.42906-1-jerinj@marvell.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-01_10:, , signatures=0 Subject: [dpdk-dev] [PATCH] drivers: fix ICC compilation issue with i686 for octeontx2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Amit Gupta Fix the following ICC specific compilation issue with i686 build. dpdk/drivers/common/octeontx2/otx2_mbox.c(47): error #2259: non-pointer conversion from "unsigned long long" to "struct mbox_hdr *" may lose significant bits (struct mbox_hdr *)((uintptr_t)mdev->mbase + mbox->tx_start); Fixes: 732377a6792e ("mempool/octeontx2: add build infra and device probe") Fixes: 371d3212cbed ("common/octeontx2: add build infrastructure and HW definition") Signed-off-by: Amit Gupta --- drivers/common/octeontx2/Makefile | 3 +++ drivers/mempool/octeontx2/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/common/octeontx2/Makefile b/drivers/common/octeontx2/Makefile index fabc32537..afe570817 100644 --- a/drivers/common/octeontx2/Makefile +++ b/drivers/common/octeontx2/Makefile @@ -17,6 +17,9 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/pci ifneq ($(CONFIG_RTE_ARCH_64),y) CFLAGS += -Wno-int-to-pointer-cast CFLAGS += -Wno-pointer-to-int-cast +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -diag-disable 2259 +endif endif EXPORT_MAP := rte_common_octeontx2_version.map diff --git a/drivers/mempool/octeontx2/Makefile b/drivers/mempool/octeontx2/Makefile index b3568443e..87cce22c6 100644 --- a/drivers/mempool/octeontx2/Makefile +++ b/drivers/mempool/octeontx2/Makefile @@ -18,6 +18,9 @@ CFLAGS += -O3 ifneq ($(CONFIG_RTE_ARCH_64),y) CFLAGS += -Wno-int-to-pointer-cast CFLAGS += -Wno-pointer-to-int-cast +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -diag-disable 2259 +endif endif EXPORT_MAP := rte_mempool_octeontx2_version.map -- 2.21.0