]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xtensa: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:10:10 +0000 (08:10 +0100)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 6 Jun 2025 08:03:35 +0000 (01:03 -0700)
commit44a4ef59d5506c6dc7599d876a3a1014697ec480
tree3b1827e5e9fd3e2f4c7df2bfc433cab83292aee9
parentda7870162f176ea38bff7380d67222e0430b0e35
xtensa: 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).

Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250314071013.1575167-40-thuth@redhat.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
16 files changed:
arch/xtensa/include/asm/bootparam.h
arch/xtensa/include/asm/cmpxchg.h
arch/xtensa/include/asm/coprocessor.h
arch/xtensa/include/asm/current.h
arch/xtensa/include/asm/ftrace.h
arch/xtensa/include/asm/initialize_mmu.h
arch/xtensa/include/asm/jump_label.h
arch/xtensa/include/asm/kasan.h
arch/xtensa/include/asm/kmem_layout.h
arch/xtensa/include/asm/page.h
arch/xtensa/include/asm/pgtable.h
arch/xtensa/include/asm/processor.h
arch/xtensa/include/asm/ptrace.h
arch/xtensa/include/asm/signal.h
arch/xtensa/include/asm/thread_info.h
arch/xtensa/include/asm/tlbflush.h