[PATCH v5 3/8] hexagon: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

Thomas Huth
2026-04-09T09:47:39Z

__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@oss.qualcomm.com>
Cc: linux-hexagon@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
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.53.0