aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge G. Davis <george_davis@mentor.com>2019-06-03 10:30:39 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-25 11:35:58 +0800
commite1a101a9dae995089c5e041bc39a08f41c0c7d66 (patch)
treebd3eb9e77a9e5cc64ea6fc445e6d5b268e12886b
parent1f74977c274090e76b06cf1bc54f182672dbfafe (diff)
downloadlinux-yocto-e1a101a9dae995089c5e041bc39a08f41c0c7d66.tar.gz
linux-yocto-e1a101a9dae995089c5e041bc39a08f41c0c7d66.tar.bz2
linux-yocto-e1a101a9dae995089c5e041bc39a08f41c0c7d66.zip
scripts/checkstack.pl: Fix arm64 wrong or unknown architecture
[ Upstream commit 4f45d62a52297b10ded963412a158685647ecdec ] The following error occurs for the `make ARCH=arm64 checkstack` case: aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \ perl ./scripts/checkstack.pl arm64 wrong or unknown architecture "arm64" As suggested by Masahiro Yamada, fix the above error using regular expressions in the same way it was fixed for the `ARCH=x86` case via commit fda9f9903be6 ("scripts/checkstack.pl: automatically handle 32-bit and 64-bit mode for ARCH=x86"). Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: George G. Davis <george_davis@mentor.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rwxr-xr-xscripts/checkstack.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 34414c6efad6..a2c9e7f98e06 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -46,7 +46,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
$x = "[0-9a-f]"; # hex character
$xs = "[0-9a-f ]"; # hex character or space
$funcre = qr/^$x* <(.*)>:$/;
- if ($arch eq 'aarch64') {
+ if ($arch =~ '^(aarch|arm)64$') {
#ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
$re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
} elsif ($arch eq 'arm') {