The patch titled Subject: scripts/checkstack.pl: fix arm64 wrong or unknown architecture has been added to the -mm tree. Its filename is scripts-checkstackpl-fix-arm64-wrong-or-unknown-architecture.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/scripts-checkstackpl-fix-arm64-wrong-or-unknown-architecture.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/scripts-checkstackpl-fix-arm64-wrong-or-unknown-architecture.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "George G. Davis" <george_davis@xxxxxxxxxx> Subject: 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 fda9f9903be6 ("scripts/checkstack.pl: automatically handle 32-bit and 64-bit mode for ARCH=x86"). Link: http://lkml.kernel.org/r/1559572240-18706-1-git-send-email-george_davis@xxxxxxxxxx Signed-off-by: George G. Davis <george_davis@xxxxxxxxxx> Suggested-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> Cc: Andy Whitcroft <apw@xxxxxxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Will Deacon <will.deacon@xxxxxxx> Cc: Michal Marek <michal.lkml@xxxxxxxxxxx> Cc: Qian Cai <cai@xxxxxx> Cc: "George G. Davis" <george_davis@xxxxxxxxxx> Cc: Breno Leitao <leitao@xxxxxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/checkstack.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/checkstack.pl~scripts-checkstackpl-fix-arm64-wrong-or-unknown-architecture +++ a/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]! #a110: d11643ff sub sp, sp, #0x590 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; _ Patches currently in -mm which might be from george_davis@xxxxxxxxxx are scripts-checkstackpl-fix-arm64-wrong-or-unknown-architecture.patch