/^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/
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