]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
alpha: Replace __ASSEMBLY__ with __ASSEMBLER__ in the alpha headers
authorThomas Huth <thuth@redhat.com>
Fri, 21 Nov 2025 10:00:36 +0000 (11:00 +0100)
committerMagnus Lindholm <linmag7@gmail.com>
Mon, 8 Dec 2025 22:10:30 +0000 (23:10 +0100)
commit3cec82b4fc6a1025d4b9cfb74fbca8a363bb5cbe
treec7ac9f562872e82d719dcf9bc16e9d7cee34ba1d
parent3a8660878839faadb4f1a6dd72c3179c1df56787
alpha: Replace __ASSEMBLY__ with __ASSEMBLER__ in the alpha headers

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. So let's standardize now
on the __ASSEMBLER__ macro that is provided by the compilers.

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

Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://lore.kernel.org/r/20251121100044.282684-2-thuth@redhat.com
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
arch/alpha/include/asm/console.h
arch/alpha/include/asm/page.h
arch/alpha/include/asm/pal.h
arch/alpha/include/asm/thread_info.h