The patch titled Subject: scripts/decodecode: set ARCH when running natively on arm/arm64 has been added to the -mm tree. Its filename is scripts-decodecode-set-arch-when-running-natively-on-arm-arm64.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/scripts-decodecode-set-arch-when-running-natively-on-arm-arm64.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/scripts-decodecode-set-arch-when-running-natively-on-arm-arm64.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: Marc Zyngier <marc.zyngier@xxxxxxx> Subject: scripts/decodecode: set ARCH when running natively on arm/arm64 When running decodecode natively on arm64, ARCH is likely not to be set, and we end-up with .4byte instead of .inst when generating the disassembly. Similar effects would occur if running natively on a 32bit ARM platform, although that's even less popular. A simple workaround is to populate ARCH when it is not set and that we're running on an arm/arm64 system. Link: http://lkml.kernel.org/r/20181210174659.31054-2-marc.zyngier@xxxxxxx Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> Acked-by: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/decodecode | 7 +++++++ 1 file changed, 7 insertions(+) --- a/scripts/decodecode~scripts-decodecode-set-arch-when-running-natively-on-arm-arm64 +++ a/scripts/decodecode @@ -60,6 +60,13 @@ case $width in 4) type=4byte ;; esac +if [ -z "$ARCH" ]; then + case `uname -m` in + aarch64*) ARCH=arm64 ;; + arm*) ARCH=arm ;; + esac +fi + disas() { ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s > /dev/null 2>&1 _ Patches currently in -mm which might be from marc.zyngier@xxxxxxx are scripts-decodecode-set-arch-when-running-natively-on-arm-arm64.patch scripts-decode_stacktrace-only-strip-base-path-when-a-prefix-of-the-path.patch