From: "Pei, Yulong" <yulong.pei@intel.com>
To: Panu Matilainen <pmatilai@redhat.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] i40e: remove redundant compiler warning disablers
Date: Mon, 29 Feb 2016 05:51:23 +0000 [thread overview]
Message-ID: <188971FCDA171749BED5DA74ABF3E6F00353B34B@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <7f7e66dd4ed8453085b719799533365333fb1c54.1449491848.git.pmatilai@redhat.com>
This patch caused build error with i686-native-linuxapp-gcc (gcc version is 4.8.3)
> > i686-native-linuxapp-gcc compile error info:
> >
> > INSTALL-LIB librte_pmd_vmxnet3_uio.a
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c: In function
> > âi40e_aq_set_lldp_mibâ:
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:3772:32: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_high = CPU_TO_LE32(I40E_HI_WORD((u64)buff));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:3773:30: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_low = CPU_TO_LE32(I40E_LO_DWORD((u64)buff));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c: In function
> > âi40e_aq_set_arp_proxy_configâ:
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5817:33: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_high = CPU_TO_LE32(I40E_HI_DWORD((u64)proxy_config));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5818:30: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_low = CPU_TO_LE32(I40E_LO_DWORD((u64)proxy_config));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c: In function
> > âi40e_aq_set_ns_proxy_table_entryâ:
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5852:14: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > CPU_TO_LE32(I40E_HI_DWORD((u64)ns_proxy_table_entry));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5854:12: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > CPU_TO_LE32(I40E_LO_DWORD((u64)ns_proxy_table_entry));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c: In function
> > âi40e_aq_set_clear_wol_filterâ:
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5914:33: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_high = CPU_TO_LE32(I40E_HI_DWORD((u64)filter));
> > ^
> > /root/dpdk/drivers/net/i40e/base/i40e_common.c:5915:30: error: cast
> > from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > cmd->address_low = CPU_TO_LE32(I40E_LO_DWORD((u64)filter));
> > ^
> > cc1: all warnings being treated as errors
> > make[6]: *** [i40e_common.o] Error 1
> > make[5]: *** [i40e] Error 2
> > make[5]: *** Waiting for unfinished jobs....
> > INSTALL-LIB librte_pmd_ixgbe.a
> > AR librte_pmd_e1000.a
> > INSTALL-LIB librte_pmd_e1000.a
> > make[4]: *** [net] Error 2
> > make[3]: *** [drivers] Error 2
> > make[2]: *** [all] Error 2
> > make[1]: *** [pre_install] Error 2
> > make: *** [install] Error 2
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Panu Matilainen
Sent: Monday, December 7, 2015 8:37 PM
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] i40e: remove redundant compiler warning disablers
These may have been required at some point but current i40e base driver compiles cleanly without them, at least with clang 3.7.0 and gcc 5.1.1.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
---
drivers/net/i40e/Makefile | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/drivers/net/i40e/Makefile b/drivers/net/i40e/Makefile index 033ee4a..4ffaf0d 100644
--- a/drivers/net/i40e/Makefile
+++ b/drivers/net/i40e/Makefile
@@ -53,23 +53,10 @@ CFLAGS_BASE_DRIVER = -wd593 -wd188 else ifeq ($(CC), clang) CFLAGS_BASE_DRIVER += -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-unused-value -CFLAGS_BASE_DRIVER += -Wno-unused-parameter -CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -CFLAGS_BASE_DRIVER += -Wno-format -CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers -CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast -CFLAGS_BASE_DRIVER += -Wno-format-nonliteral CFLAGS_BASE_DRIVER += -Wno-unused-variable else CFLAGS_BASE_DRIVER = -Wno-sign-compare CFLAGS_BASE_DRIVER += -Wno-unused-value -CFLAGS_BASE_DRIVER += -Wno-unused-parameter -CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -CFLAGS_BASE_DRIVER += -Wno-format -CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers -CFLAGS_BASE_DRIVER += -Wno-pointer-to-int-cast -CFLAGS_BASE_DRIVER += -Wno-format-nonliteral -CFLAGS_BASE_DRIVER += -Wno-format-security CFLAGS_BASE_DRIVER += -Wno-unused-variable
ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
--
2.5.0
next prev parent reply other threads:[~2016-02-29 5:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-07 12:37 Panu Matilainen
2016-02-29 5:51 ` Pei, Yulong [this message]
2016-03-09 21:46 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=188971FCDA171749BED5DA74ABF3E6F00353B34B@shsmsx102.ccr.corp.intel.com \
--to=yulong.pei@intel.com \
--cc=dev@dpdk.org \
--cc=pmatilai@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).