]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
microblaze: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:09:49 +0000 (08:09 +0100)
committerMichal Simek <michal.simek@amd.com>
Fri, 12 Sep 2025 11:12:42 +0000 (13:12 +0200)
commit438f7cd41765dbe8830009a37f90145b7f05ed39
tree50e0950faf94163bea90c86ce3a0d1cf07eb0f3b
parentf0bff4e437960ac45c3078582c00f323b1339f96
microblaze: 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: Michal Simek <monstr@monstr.eu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20250314071013.1575167-19-thuth@redhat.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
17 files changed:
arch/microblaze/include/asm/asm-compat.h
arch/microblaze/include/asm/current.h
arch/microblaze/include/asm/entry.h
arch/microblaze/include/asm/exceptions.h
arch/microblaze/include/asm/fixmap.h
arch/microblaze/include/asm/ftrace.h
arch/microblaze/include/asm/kgdb.h
arch/microblaze/include/asm/mmu.h
arch/microblaze/include/asm/page.h
arch/microblaze/include/asm/pgtable.h
arch/microblaze/include/asm/processor.h
arch/microblaze/include/asm/ptrace.h
arch/microblaze/include/asm/sections.h
arch/microblaze/include/asm/setup.h
arch/microblaze/include/asm/thread_info.h
arch/microblaze/include/asm/unistd.h
arch/microblaze/include/asm/xilinx_mb_manager.h