]> git.ozlabs.org Git - next-scripts/blobdiff - do_build
do_build: suppress some ABI warnings in the perf build
[next-scripts] / do_build
index 9aede1371dc0f0059d9994177b4f722e52782104..a898bbaff6ec0e01e90928da8d0c78e0e21425cb 100755 (executable)
--- 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