linux/arch/mips/include/asm/sn
Thomas Huth 157f9533f9 mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers
While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembler code, __ASSEMBLY__ is a macro
that only gets defined by the Makefiles in the kernel. Defining
such a macro was necessary in the early days of the kernel, since GCC
only started providing __ASSEMBLER__ since version 3.0 in 2000 (see
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=f8f769ea4e69 ).
However, having two macros can be very confusing nowadays for the
developers when switching between userspace and kernelspace coding,
or when dealing with uapi headers that should use __ASSEMBLER__
instead. So let's now standardize on the __ASSEMBLER__ macro that is
provided by the compilers.

This is almost a completely mechanical patch (done with a simple
"sed -i" statement), with just one comment tweaked manually in
arch/mips/include/asm/cpu.h (that was missing some underscores).

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2025-08-29 22:34:29 +02:00
..
sn0 mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
addrs.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
agent.h MIPS: SGI-IP27: get rid of compact node ids 2019-10-07 09:37:59 -07:00
arch.h MIPS: SGI-IP27: Move get_nasid() to a IP27 specific file 2020-01-09 15:29:54 -08:00
fru.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
gda.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
intr.h MIPS: SGI-IP27: Only reserve interrupts used in Linux 2020-01-09 15:30:04 -08:00
io.h MIPS: SGI-IP27: get rid of volatile and hubreg_t 2019-02-19 12:46:02 -08:00
ioc3.h MIPS: PCI: Add detection of IOC3 on IO7, IO8, IO9 and Fuel 2020-01-24 11:37:45 -08:00
irq_alloc.h MIPS: SGI-IP27: abstract chipset irq from bridge 2019-05-09 16:48:20 -07:00
klconfig.h MIPS: Fix typos 2024-01-08 10:39:12 +01:00
kldir.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
klkernvars.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
launch.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
mapped_kernel.h MIPS: SGI-IP27: get rid of compact node ids 2019-10-07 09:37:59 -07:00
nmi.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
types.h mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00