Skip to content

Commit 4f45d62

Browse files
George G. Davismasahir0y
authored andcommitted
scripts/checkstack.pl: Fix arm64 wrong or unknown architecture
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 fda9f99 ("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>
1 parent a6e0487 commit 4f45d62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/checkstack.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
$x = "[0-9a-f]"; # hex character
4747
$xs = "[0-9a-f ]"; # hex character or space
4848
$funcre = qr/^$x* <(.*)>:$/;
49-
if ($arch eq 'aarch64') {
49+
if ($arch =~ '^(aarch|arm)64$') {
5050
#ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
5151
#a110: d11643ff sub sp, sp, #0x590
5252
$re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;

0 commit comments

Comments
 (0)