Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: fix build error in sigcontext.h

I'm seeing this build failure for arm64:

CC [M] Documentation/filesystems/configfs/configfs_example_macros.o
In file included from /usr/include/bits/sigcontext.h:27:0,
from /usr/include/signal.h:340,
from /usr/include/sys/wait.h:30,
from Documentation/accounting/getdelays.c:24:
.../linux/usr/include/asm/sigcontext.h:61:2: error: unknown type name ‘u64’
u64 esr;
^
make[2]: *** [Documentation/accounting/getdelays] Error 1

This was introduced by commit 15af1942dd61ee23:

arm64: Expose ESR_EL1 information to user when SIGSEGV/SIGBUS

Using __u64 instead of u64 fixes the problem.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Mark Salter and committed by
Catalin Marinas
5e406450 457ced84

+1 -1
+1 -1
arch/arm64/include/uapi/asm/sigcontext.h
··· 58 58 59 59 struct esr_context { 60 60 struct _aarch64_ctx head; 61 - u64 esr; 61 + __u64 esr; 62 62 }; 63 63 64 64 #endif /* _UAPI__ASM_SIGCONTEXT_H */