]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 10 Oct 2025 13:01:15 +0000 (15:01 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 19:35:58 +0000 (19:35 +0000)
__ASSEMBLY__ is only defined by the Makefile of the kernel, so
this is not really useful for uapi headers (unless the userspace
Makefile defines it, too). Let's switch to __ASSEMBLER__ which
gets set automatically by the compiler when compiling assembly
code.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/include/uapi/asm/ptrace.h
arch/arm64/include/uapi/asm/sigcontext.h

index ed5f3892674c7df421265514ebdb1b23e12f3e14..a792a599b9d68882dd2b5010227520e5328a68d3 100644 (file)
@@ -31,7 +31,7 @@
 #define KVM_SPSR_FIQ   4
 #define KVM_NR_SPSR    5
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 #include <linux/psci.h>
 #include <linux/types.h>
 #include <asm/ptrace.h>
index 0f39ba4f3efd4a8760f0fca0fbf1a2563b191c7d..6fed93fb2536fedab22ffd56787a07ebd2a16ea7 100644 (file)
@@ -80,7 +80,7 @@
 #define PTRACE_PEEKMTETAGS       33
 #define PTRACE_POKEMTETAGS       34
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 /*
  * User structures for general purpose, floating point and debug registers.
@@ -332,6 +332,6 @@ struct user_gcs {
        __u64 gcspr_el0;
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* _UAPI__ASM_PTRACE_H */
index d42f7a92238b9d79ff8939a3e968d5afb1e2ff8d..e29bf3e2d0ccd275006a52dd5f7146105dcdbf9c 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef _UAPI__ASM_SIGCONTEXT_H
 #define _UAPI__ASM_SIGCONTEXT_H
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 #include <linux/types.h>
 
@@ -192,7 +192,7 @@ struct gcs_context {
        __u64 reserved;
 };
 
-#endif /* !__ASSEMBLY__ */
+#endif /* !__ASSEMBLER__ */
 
 #include <asm/sve_context.h>