Message ID | 20200811140435.20957-8-sfr@canb.auug.org.au (mailing list archive) |
---|---|
State | Accepted |
Commit | af13a2244d59c4d63a25abd8257cbaef9d9ffebc |
Headers | show |
Series | powerpc: unrel_branch_check.sh: make it suck less | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (f04b169e953c4db1a3a3c1d23eea09c726f01ee5) |
snowpatch_ozlabs/build-ppc64le | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-ppc64be | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-ppc64e | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/build-pmac32 | warning | Upstream build failed, couldn't test patch |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 13 lines checked |
snowpatch_ozlabs/needsstable | success | Patch has no Fixes tags |
diff --git a/arch/powerpc/tools/unrel_branch_check.sh b/arch/powerpc/tools/unrel_branch_check.sh index 4489f16a443c..70da90270c78 100755 --- a/arch/powerpc/tools/unrel_branch_check.sh +++ b/arch/powerpc/tools/unrel_branch_check.sh @@ -14,9 +14,12 @@ kstart=0xc000000000000000 printf -v kend '0x%x' $(( kstart + 0x10000 )) end_intr=0x$( -$objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" | +$objdump -R -d --start-address="$kstart" --stop-address="$kend" "$vmlinux" 2>/dev/null | awk '$2 == "<__end_interrupts>:" { print $1 }' ) +if [ "$end_intr" = "0x" ]; then + exit 0 +fi $objdump -R -D --no-show-raw-insn --start-address="$kstart" --stop-address="$end_intr" "$vmlinux" | sed -E -n '
If we can't find the address of __end_interrupts, then we still exit successfully as that is the current behaviour. Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> --- arch/powerpc/tools/unrel_branch_check.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)