]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
irqchip/gic: Replace __ASSEMBLY__ with __ASSEMBLER__
authorThomas Huth <thuth@redhat.com>
Tue, 21 Apr 2026 11:30:12 +0000 (13:30 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 30 Apr 2026 10:53:06 +0000 (12:53 +0200)
While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a macro that
only gets defined by the Makefiles in the kernel.

This can be very confusing when switching between userspace and kernelspace
coding, or when dealing with uapi headers that rather should use
__ASSEMBLER__ instead.

Standardize now on the __ASSEMBLER__ macro that is provided by the
compilers.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260421113012.146528-1-thuth@redhat.com
arch/arm/include/asm/arch_gicv3.h
include/linux/irqchip/arm-gic-v3.h
include/linux/irqchip/arm-gic.h

index 311e83038bdb374afcbb43ac74bba432abc943e6..847590df75511714959948914f82abf9c4ebed55 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef __ASM_ARCH_GICV3_H
 #define __ASM_ARCH_GICV3_H
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 #include <linux/io.h>
 #include <linux/io-64-nonatomic-lo-hi.h>
@@ -257,5 +257,5 @@ static inline bool gic_has_relaxed_pmr_sync(void)
        return false;
 }
 
-#endif /* !__ASSEMBLY__ */
+#endif /* !__ASSEMBLER__ */
 #endif /* !__ASM_ARCH_GICV3_H */
index 0225121f3013805c46b6547f747835a26bc4d205..ea5fd2374ebe022e93b0be5741a8f3c88385c82b 100644 (file)
 
 #include <asm/arch_gicv3.h>
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 /*
  * We need a value to serve as a irq-type for LPIs. Choose one that will
index d45fa19f9e470708c252b76736781735ec4fef35..849386dc5ec80898a74fa334398f218dcdf36ce7 100644 (file)
 #define GICV_PMR_PRIORITY_SHIFT                3
 #define GICV_PMR_PRIORITY_MASK         (0x1f << GICV_PMR_PRIORITY_SHIFT)
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 #include <linux/irqdomain.h>
 
@@ -162,5 +162,5 @@ int gic_get_cpu_id(unsigned int cpu);
 void gic_migrate_target(unsigned int new_cpu_id);
 unsigned long gic_get_sgir_physaddr(void);
 
-#endif /* __ASSEMBLY */
+#endif /* __ASSEMBLER__ */
 #endif