From: Stephen Rothwell Date: Mon, 5 Jul 2021 23:17:11 +0000 (+1000) Subject: do_build: suppress some ABI warnings in the perf build X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=1fab4a50f4e2f6726480571e75c1b936792ec7da;p=next-scripts do_build: suppress some ABI warnings in the perf build also update the section mismatch pattern --- diff --git a/do_build b/do_build index 9aede13..a898bba 100755 --- a/do_build +++ b/do_build @@ -39,7 +39,7 @@ log_regex='/^[[:space:]]+$/d /^System is [[:digit:]]+ kB$/d /^CRC [[:xdigit:]]+$/d /^Kernel: arch\/x86\/boot\/bzImage is ready \(#[[:digit:]]+\)$/d -s/^(WARNING: (drivers\/built-in|vmlinux)\.o\(\.(data|text)\+0x)[[:xdigit:]]+(\): Section mismatch in reference from .*)$/\1XXXX\4/ +s/^(WARNING: (modpost: )?(drivers\/built-in|vmlinux)\.o\(\.[^+]*\+0x)[[:xdigit:]]+(\): Section mismatch in reference from .*)$/\1XXXX\4/ /^Warning: Kernel ABI header at /d /^[[:space:]]+PERF_VERSION = /d s/^(Parsed description of) [[:digit:]]+ (helper function)/\1 X \2/ @@ -115,7 +115,10 @@ $cmd <<-EOF d="$bparent/perf" [ -d \$d ] || mkdir \$d || exit 1 log_perf=\$d.log - /usr/bin/time make -C tools/perf -f Makefile.perf -s -O -j40 O=\$d > \$log_perf 2>&1 + # the -Wno-psabi is to suppress + # note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 + # warnings until at least gcc 12 when the warning will be removed + /usr/bin/time make -C tools/perf -f Makefile.perf -s -O -j40 O=\$d EXTRA_CFLAGS=-Wno-psabi > \$log_perf 2>&1 rc=\$? if [ \$rc -ne 0 ]; then