]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:09:42 +0000 (08:09 +0100)
committerGuo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Sun, 19 Oct 2025 06:54:51 +0000 (02:54 -0400)
commit117c537cc7d6ea709f3f370e892c21a7a087ec94
treecc8724be963af621568c111096ba61888323ce2c
parent809ef03d6d21d5fea016bbf6babeec462e37e68c
csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi 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 on
the __ASSEMBLER__ macro that is provided by the compilers now.

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

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
arch/csky/abiv1/inc/abi/regdef.h
arch/csky/abiv2/inc/abi/regdef.h
arch/csky/include/asm/barrier.h
arch/csky/include/asm/cache.h
arch/csky/include/asm/ftrace.h
arch/csky/include/asm/jump_label.h
arch/csky/include/asm/page.h
arch/csky/include/asm/ptrace.h
arch/csky/include/asm/string.h
arch/csky/include/asm/thread_info.h