]> www.infradead.org Git - users/hch/misc.git/commitdiff
powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 1 Aug 2025 08:20:06 +0000 (10:20 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 1 Sep 2025 07:53:29 +0000 (13:23 +0530)
__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 assembler
code.

This is a completely mechanical patch (done with a simple "sed -i"
statement).

Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250801082007.32904-2-thuth@redhat.com
arch/powerpc/include/uapi/asm/opal-prd.h
arch/powerpc/include/uapi/asm/ptrace.h
arch/powerpc/include/uapi/asm/types.h

index 1869cf83a870ed8d703cb2481dbc42c97626b53b..11abcf0192ca1a7784d2a780ee7b6c4031dbc31d 100644 (file)
@@ -40,7 +40,7 @@
 #define OPAL_PRD_SCOM_READ             _IOR('o', 0x02, struct opal_prd_scom)
 #define OPAL_PRD_SCOM_WRITE            _IOW('o', 0x03, struct opal_prd_scom)
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 struct opal_prd_info {
        __u64   version;
@@ -54,6 +54,6 @@ struct opal_prd_scom {
        __s64   rc;
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* _UAPI_ASM_POWERPC_OPAL_PRD_H */
index 7004cfea3f5ff878b84fcb41c7649ca4d694cadb..01e630149d48e131ca7f7f12ba920dc07bf994cb 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <linux/types.h>
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 #ifdef __KERNEL__
 struct user_pt_regs
@@ -57,7 +57,7 @@ struct pt_regs
        unsigned long result;           /* Result of a system call */
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 
 /*
@@ -200,7 +200,7 @@ struct pt_regs
 #define PPC_PTRACE_SETHWDEBUG  0x88
 #define PPC_PTRACE_DELHWDEBUG  0x87
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 struct ppc_debug_info {
        __u32 version;                  /* Only version 1 exists to date */
@@ -212,7 +212,7 @@ struct ppc_debug_info {
        __u64 features;
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 /*
  * features will have bits indication whether there is support for:
@@ -224,7 +224,7 @@ struct ppc_debug_info {
 #define PPC_DEBUG_FEATURE_DATA_BP_DAWR         0x0000000000000010
 #define PPC_DEBUG_FEATURE_DATA_BP_ARCH_31      0x0000000000000020
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 struct ppc_hw_breakpoint {
        __u32 version;          /* currently, version must be 1 */
@@ -236,7 +236,7 @@ struct ppc_hw_breakpoint {
        __u64 condition_value;  /* contents of the DVC register */
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 /*
  * Trigger Type
index 327616fb70e449b589094604405c5cb7a8710747..9dbf55e38ea58bea96f8e2c7b3b19b7c0406066a 100644 (file)
 # include <asm-generic/int-ll64.h>
 #endif
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 
 typedef struct {
        __u32 u[4];
 } __attribute__((aligned(16))) __vector128;
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 
 #endif /* _UAPI_ASM_POWERPC_TYPES_H */