]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/scripts-checkstack.pl-fix-arm64-wrong-or-unknown-arc.patch
fixes for 4.14
[thirdparty/kernel/stable-queue.git] / queue-4.14 / scripts-checkstack.pl-fix-arm64-wrong-or-unknown-arc.patch
1 From 422bd979dec07d83bf073833e309af78936773dd Mon Sep 17 00:00:00 2001
2 From: "George G. Davis" <george_davis@mentor.com>
3 Date: Mon, 3 Jun 2019 10:30:39 -0400
4 Subject: scripts/checkstack.pl: Fix arm64 wrong or unknown architecture
5
6 [ Upstream commit 4f45d62a52297b10ded963412a158685647ecdec ]
7
8 The following error occurs for the `make ARCH=arm64 checkstack` case:
9
10 aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \
11 perl ./scripts/checkstack.pl arm64
12 wrong or unknown architecture "arm64"
13
14 As suggested by Masahiro Yamada, fix the above error using regular
15 expressions in the same way it was fixed for the `ARCH=x86` case via
16 commit fda9f9903be6 ("scripts/checkstack.pl: automatically handle
17 32-bit and 64-bit mode for ARCH=x86").
18
19 Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
20 Signed-off-by: George G. Davis <george_davis@mentor.com>
21 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
22 Signed-off-by: Sasha Levin <sashal@kernel.org>
23 ---
24 scripts/checkstack.pl | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27 diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
28 index 16dc157f9662..a3f895c216b6 100755
29 --- a/scripts/checkstack.pl
30 +++ b/scripts/checkstack.pl
31 @@ -45,7 +45,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
32 $x = "[0-9a-f]"; # hex character
33 $xs = "[0-9a-f ]"; # hex character or space
34 $funcre = qr/^$x* <(.*)>:$/;
35 - if ($arch eq 'aarch64') {
36 + if ($arch =~ '^(aarch|arm)64$') {
37 #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]!
38 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
39 } elsif ($arch eq 'arm') {
40 --
41 2.20.1
42