Skip to contentSkip to conversation

arm64: fix build error in sigcontext.h

PATCH Applied Mark Salter 2 participants 2 messages Jun 11, 2014 – Jun 18, 2014 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm64/include/uapi/asm/sigcontext.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/include/uapi/asm/sigcontext.h +1 -1
index b72cf40..ee469be 100644
@@ -58,7 +58,7 @@ struct fpsimd_context {
 
 struct esr_context {
 	struct _aarch64_ctx head;
-	u64 esr;
+	__u64 esr;
 };
 
 #endif /* _UAPI__ASM_SIGCONTEXT_H */
Signature · 1 line
1.9.0
maintainer Applied
#1 lore raw
Quoted 12 lines · Mark Salter

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

Quoted 7 lines

This was introduced by commit 15af1942dd61ee23:

arm64: Expose ESR_EL1 information to user when SIGSEGV/SIGBUS

Using __u64 instead of u64 fixes the problem.

Applied. Thanks.

Signature · 1 line
Catalin