[PATCH 12/41] hexagon: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
From: Thomas Huth
Date: Fri Mar 14 2025 - 03:13:55 EST
__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: Brian Cain <brian.cain@xxxxxxxxxxxxxxxx>
Cc: linux-hexagon@xxxxxxxxxxxxxxx
Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
---
arch/hexagon/include/uapi/asm/registers.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/hexagon/include/uapi/asm/registers.h b/arch/hexagon/include/uapi/asm/registers.h
index d51270f3b3582..8f73d41651e87 100644
--- a/arch/hexagon/include/uapi/asm/registers.h
+++ b/arch/hexagon/include/uapi/asm/registers.h
@@ -7,7 +7,7 @@
#ifndef _ASM_REGISTERS_H
#define _ASM_REGISTERS_H
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
/* See kernel/entry.S for further documentation. */
@@ -224,6 +224,6 @@ struct pt_regs {
(regs)->hvmer.vmest = (HVM_VMEST_UM_MSK << HVM_VMEST_UM_SFT) \
| (HVM_VMEST_IE_MSK << HVM_VMEST_IE_SFT)
-#endif /* ifndef __ASSEMBLY */
+#endif /* ifndef __ASSEMBLER__ */
#endif
--
2.48.1