]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARC: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:09:35 +0000 (08:09 +0100)
committerVineet Gupta <vgupta@kernel.org>
Mon, 9 Jun 2025 16:18:12 +0000 (09:18 -0700)
__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.

Cc: linux-snps-arc@lists.infradead.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/include/uapi/asm/ptrace.h

index 2a6eff57f6dd814c9fa4797c366e228d7a397502..3ae832db278cd4bc66d6d9d2f022477c2c5d454e 100644 (file)
@@ -14,7 +14,7 @@
 
 #define PTRACE_GET_THREAD_AREA 25
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 /*
  * Userspace ABI: Register state needed by
  *  -ptrace (gdbserver)
@@ -53,6 +53,6 @@ struct user_regs_arcv2 {
        unsigned long r30, r58, r59;
 };
 
-#endif /* !__ASSEMBLY__ */
+#endif /* !__ASSEMBLER__ */
 
 #endif /* _UAPI__ASM_ARC_PTRACE_H */