Skip to contentSkip to conversation

drivers: fix ICC compilation issue with i686 for octeontx2

PATCH Applied [email protected] 2 participants 2 messages Jul 1, 2019 – Jul 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: fix ICC compilation issue with i686 for octeontx2

From: Amit Gupta <[email protected]>

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")
---
 drivers/common/octeontx2/Makefile  | 3 +++
 drivers/mempool/octeontx2/Makefile | 3 +++
 2 files changed, 6 insertions(+)
drivers/common/octeontx2/Makefile +3 -0
index fabc32537..afe570817 100644
@@ -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
drivers/mempool/octeontx2/Makefile +3 -0
index b3568443e..87cce22c6 100644
@@ -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
Signature · 1 line
2.21.0
#1 lore raw

01/07/2019 20:03, [email protected]:

Quoted 9 lines

From: Amit Gupta <[email protected]>

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);

Quoted 4 lines
Fixes 732377a6792e ("mempool/octeontx2: add build infra and device probe")
Fixes 371d3212cbed ("common/octeontx2: add build infrastructure and HW definition")

Applied, thanks