s390: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Wed, 11 Jun 2025 14:00:46 +0000 (16:00 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 16 Jun 2025 14:23:02 +0000 (16:23 +0200)
commit42398caf16c955251a2dab86f797b76adeb99899
tree80e52cb45430c40f9cb5e92153ff818ce71321d2
parent9b27182c553542118c5bbfdd89bab28e460ffdc8
s390: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi 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.
This is bad since macros starting with two underscores are names
that are reserved by the C language. It can also be very confusing
for the developers when switching between userspace and kernelspace
coding, or when dealing with uapi headers that rather should use
__ASSEMBLER__  instead. So let's now standardize on the __ASSEMBLER__
macro that is provided by the compilers.

This is a completely mechanical patch (done with a simple "sed -i"
statement), with some manual fixups done later while rebasing the
patch.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250611140046.137739-3-thuth@redhat.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
33 files changed:
arch/s390/boot/boot.h
arch/s390/include/asm/alternative.h
arch/s390/include/asm/asm-const.h
arch/s390/include/asm/cpu.h
arch/s390/include/asm/cpu_mf-insn.h
arch/s390/include/asm/ctlreg.h
arch/s390/include/asm/dwarf.h
arch/s390/include/asm/extmem.h
arch/s390/include/asm/fpu-insn-asm.h
arch/s390/include/asm/fpu-insn.h
arch/s390/include/asm/ftrace.h
arch/s390/include/asm/irq.h
arch/s390/include/asm/jump_label.h
arch/s390/include/asm/lowcore.h
arch/s390/include/asm/machine.h
arch/s390/include/asm/mem_encrypt.h
arch/s390/include/asm/nmi.h
arch/s390/include/asm/nospec-branch.h
arch/s390/include/asm/nospec-insn.h
arch/s390/include/asm/page.h
arch/s390/include/asm/processor.h
arch/s390/include/asm/ptrace.h
arch/s390/include/asm/purgatory.h
arch/s390/include/asm/sclp.h
arch/s390/include/asm/setup.h
arch/s390/include/asm/sigp.h
arch/s390/include/asm/thread_info.h
arch/s390/include/asm/tpi.h
arch/s390/include/asm/types.h
arch/s390/include/asm/vdso.h
arch/s390/include/asm/vdso/getrandom.h
arch/s390/include/asm/vdso/vsyscall.h
arch/s390/net/bpf_jit.h