From 59a4acefb50089cb74e7b3e3aef7ec2c46e0c6ce Mon Sep 17 00:00:00 2001 From: LemmyHuang Date: Thu, 28 Jan 2021 09:01:32 +0000 Subject: [PATCH] fix compilation error of max-inline-insns-single-o2 limit reached Signed-off-by: LemmyHuang --- dpdk.spec | 7 ++++- ...error-of-max-inline-insns-single-o2-.patch | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 fix-compilation-error-of-max-inline-insns-single-o2-.patch diff --git a/dpdk.spec b/dpdk.spec index 9ae1952..37132e7 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,6 +1,6 @@ Name: dpdk Version: 19.11 -Release: 5 +Release: 6 Packager: packaging@6wind.com URL: http://dpdk.org %global source_version 19.11 @@ -17,6 +17,7 @@ Patch7: CVE-2020-14376-CVE-2020-14377.patch Patch8: fix-pool-allocation.patch Patch9: CVE-2020-14374.patch Patch10: CVE-2020-14375.patch +Patch11: fix-compilation-error-of-max-inline-insns-single-o2-.patch Summary: Data Plane Development Kit core Group: System Environment/Libraries @@ -84,6 +85,7 @@ This package contains the pdump tool for capture the dpdk network packets. %patch8 -p1 %patch9 -p1 %patch10 -p1 +%patch11 -p1 %build namer=%{kern_devel_ver} @@ -185,6 +187,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/${namer}/extra/dpdk/rte_kni.ko /usr/sbin/depmod %changelog +* Thu Jan 28 2021 huangliming - 19.11-6 +- fix compilation error of max-inline-insns-single-o2 limit reached + * Tue Dec 1 2020 chxssg - 19.11-5 -fix CVE-2020-14374 CVE-2020-14375 diff --git a/fix-compilation-error-of-max-inline-insns-single-o2-.patch b/fix-compilation-error-of-max-inline-insns-single-o2-.patch new file mode 100644 index 0000000..4904ef5 --- /dev/null +++ b/fix-compilation-error-of-max-inline-insns-single-o2-.patch @@ -0,0 +1,27 @@ +From f3d569535f34bb5983c325757941b5565364017f Mon Sep 17 00:00:00 2001 +From: LemmyHuang +Date: Thu, 28 Jan 2021 08:34:33 +0000 +Subject: [PATCH] fix compilation error of max-inline-insns-single-o2 limit + reached + +Signed-off-by: LemmyHuang +--- + kernel/linux/igb_uio/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kernel/linux/igb_uio/Makefile b/kernel/linux/igb_uio/Makefile +index f83bcc7..4c69f5d 100644 +--- a/kernel/linux/igb_uio/Makefile ++++ b/kernel/linux/igb_uio/Makefile +@@ -14,7 +14,7 @@ MODULE_PATH = drivers/net/igb_uio + # + MODULE_CFLAGS += -I$(SRCDIR) --param max-inline-insns-single=100 + MODULE_CFLAGS += -I$(RTE_OUTPUT)/include +-MODULE_CFLAGS += -Winline -Wall -Werror ++MODULE_CFLAGS += -Winline -Wall + MODULE_CFLAGS += -include $(RTE_OUTPUT)/include/rte_config.h + + # +-- +2.23.0 + -- Gitee