Commit c06354a1 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

torture: Make kvm-find-errors.sh report link-time undefined symbols



This commit makes kvm-find-errors.sh check for and report undefined
symbols that are detected at link time.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent b6a4fd35
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,9 +30,9 @@ editor=${EDITOR-vi}
files=
for i in ${rundir}/*/Make.out
do
	if egrep -q "error:|warning:" < $i
	if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i
	then
		egrep "error:|warning:" < $i > $i.diags
		egrep "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags
		files="$files $i.diags $i"
	fi
done
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,8 @@ fi
grep warning: < $F > $T/warnings
grep "include/linux/*rcu*\.h:" $T/warnings > $T/hwarnings
grep "kernel/rcu/[^/]*:" $T/warnings > $T/cwarnings
cat $T/hwarnings $T/cwarnings > $T/rcuwarnings
grep "^ld: .*undefined reference to" $T/warnings | head -1 > $T/ldwarnings
cat $T/hwarnings $T/cwarnings $T/ldwarnings > $T/rcuwarnings
if test -s $T/rcuwarnings
then
	print_warning $title build errors: