Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: unrel_branch_check.sh: exit silently for early errors

If we can't find the address of __end_interrupts, then we still exit
successfully as that is the current behaviour.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200811140435.20957-8-sfr@canb.auug.org.au

authored by

Stephen Rothwell and committed by
Michael Ellerman
af13a224 3745ae63

+4 -1
+4 -1
arch/powerpc/tools/unrel_branch_check.sh
··· 14 14 printf -v kend '0x%x' $(( kstart + 0x10000 )) 15 15 16 16 end_intr=0x$( 17 - $objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" | 17 + $objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" 2>/dev/null | 18 18 awk '$2 == "<__end_interrupts>:" { print $1 }' 19 19 ) 20 + if [ "$end_intr" = "0x" ]; then 21 + exit 0 22 + fi 20 23 21 24 $objdump -R -D --no-show-raw-insn --start-address="$kstart" --stop-address="$end_intr" "$vmlinux" | 22 25 sed -E -n '