Skip to content

Commit 4fea606

Browse files
George G. Davisgregkh
George G. Davis
authored andcommitted
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 fda9f99 ("scripts/checkstack.pl: automatically handle 32-bit and 64-bit mode for ARCH=x86"). Suggested-by: Masahiro Yamada <[email protected]> Signed-off-by: George G. Davis <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 1268f8b commit 4fea606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/checkstack.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
$x = "[0-9a-f]"; # hex character
4646
$xs = "[0-9a-f ]"; # hex character or space
4747
$funcre = qr/^$x* <(.*)>:$/;
48-
if ($arch eq 'aarch64') {
48+
if ($arch =~ '^(aarch|arm)64$') {
4949
#ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
5050
$re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
5151
} elsif ($arch eq 'arm') {

0 commit comments

Comments
 (0)