diff --git a/0001-Comment-out-print-triggering-gcc-8-warning.patch b/0001-Comment-out-print-triggering-gcc-8-warning.patch new file mode 100644 index 0000000..dd2ff05 --- /dev/null +++ b/0001-Comment-out-print-triggering-gcc-8-warning.patch @@ -0,0 +1,28 @@ +From 64f5ae408c1a8f45e18946bb98bf1a01a23d88fd Mon Sep 17 00:00:00 2001 +From: Laura Abbott +Date: Mon, 19 Feb 2018 17:43:30 -0800 +Subject: [PATCH] Comment out print triggering gcc-8 warning + +Signed-off-by: Laura Abbott +--- + tools/lib/bpf/libbpf.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c +index 97073d649c1a..121ad79d0803 100644 +--- a/tools/lib/bpf/libbpf.c ++++ b/tools/lib/bpf/libbpf.c +@@ -1063,8 +1063,8 @@ bpf_program__reloc_text(struct bpf_program *prog, struct bpf_object *obj, + } + insn = &prog->insns[relo->insn_idx]; + insn->imm += prog->main_prog_cnt - relo->insn_idx; +- pr_debug("added %zd insn from %s to prog %s\n", +- text->insns_cnt, text->section_name, prog->section_name); ++ //pr_debug("added %zd insn from %s to prog %s\n", ++ // text->insns_cnt, text->section_name, prog->section_name); + return 0; + } + +-- +2.14.3 + diff --git a/kernel-tools.spec b/kernel-tools.spec index f9f732a..1d94ee6 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -111,6 +111,7 @@ Patch4: 0001-tools-lib-Remove-FSF-address.patch Patch5: 0001-tools-power-Don-t-make-man-pages-executable.patch Patch6: 0002-perf-Don-t-make-sourced-script-executable.patch Patch8: 0001-Switch-to-python3.patch +Patch9: 0001-Comment-out-print-triggering-gcc-8-warning.patch Name: kernel-tools Summary: Assortment of tools for the Linux kernel License: GPLv2 @@ -185,6 +186,7 @@ cd linux-%{kversion} %patch5 -p1 %patch6 -p1 %patch8 -p1 +%patch9 -p1 # END OF PATCH APPLICATIONS