diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2020-01-30 06:32:41 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-01-30 06:38:06 +0800 |
commit | a314567e72047b507e305010e2b7809962d09fbd (patch) | |
tree | 30bb1182314e77dd7079f977fa93b6b0d20d07c3 /recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch | |
parent | 8c2fb513234a599edb481f74f74cafe09561a4ee (diff) | |
download | meta-dpdk-a314567e72047b507e305010e2b7809962d09fbd.tar.gz |
dpdk/17.11: remove
17.11 LTS will be end of life in Jan 2020.
https://core.dpdk.org/roadmap/
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch')
-rw-r--r-- | recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch b/recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch deleted file mode 100644 index 70a8dec..0000000 --- a/recipes-extended/dpdk/dpdk/dpdk-17.11-mk-disable-warning-for-packed-member-pointer.patch +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | From a385972c3675dd2b4792ab5b3cf7a536e6f9846c Mon Sep 17 00:00:00 2001 | ||
2 | From: Reshma Pattan <reshma.pattan@intel.com> | ||
3 | Date: Thu, 2 May 2019 10:33:34 +0100 | ||
4 | Subject: [PATCH] mk: disable warning for packed member pointer | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | gcc 9 on Fedora 30 gives an error | ||
10 | "taking address of packed member may result in an | ||
11 | unaligned pointer value" warnings. | ||
12 | |||
13 | For clang builds this warning is already disabled, | ||
14 | so disable "-Waddress-of-packed-member" for gcc builds | ||
15 | also. | ||
16 | |||
17 | Snippet of build error: | ||
18 | lib/librte_eal/linux/eal/eal_memalloc.c: In function ‘alloc_seg_walk’: | ||
19 | lib/librte_eal/linux/eal/eal_memalloc.c:768:12: error: | ||
20 | taking address of packed member of ‘struct rte_mem_config’ may result | ||
21 | in an unaligned pointer value [-Werror=address-of-packed-member] | ||
22 | 768 | cur_msl = &mcfg->memsegs[msl_idx]; | ||
23 | | ^~~~~~~~~~~~~~~~~~~~~~~ | ||
24 | |||
25 | Signed-off-by: Reshma Pattan <reshma.pattan@intel.com> | ||
26 | Tested-by: David Marchand <david.marchand@redhat.com> | ||
27 | Upstream-Status: Backport | ||
28 | Signed-off-by: He Zhe <zhe.he@windriver.com> | ||
29 | --- | ||
30 | mk/toolchain/gcc/rte.vars.mk | 3 +++ | ||
31 | 1 file changed, 3 insertions(+) | ||
32 | |||
33 | diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk | ||
34 | index d8b99fa..b852fcf 100644 | ||
35 | --- a/mk/toolchain/gcc/rte.vars.mk | ||
36 | +++ b/mk/toolchain/gcc/rte.vars.mk | ||
37 | @@ -87,5 +87,8 @@ WERROR_FLAGS += -Wimplicit-fallthrough=2 | ||
38 | WERROR_FLAGS += -Wno-format-truncation | ||
39 | endif | ||
40 | |||
41 | +# disable packed member unalign warnings | ||
42 | +WERROR_FLAGS += -Wno-address-of-packed-member | ||
43 | + | ||
44 | export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF | ||
45 | export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS | ||
46 | -- | ||
47 | 2.7.4 | ||
48 | |||