]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Replace __ASSEMBLY__ with __ASSEMBLER__ in the usermode headers
authorThomas Huth <thuth@redhat.com>
Fri, 14 Mar 2025 07:10:06 +0000 (08:10 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Jul 2025 15:12:45 +0000 (17:12 +0200)
commitfc9ed2f6589dc2c11f05883e5c323be5f39fd241
tree68496b0e7f96958e0f5c23966e346494da7db7f0
parentf7e9077a1649877d4b33ce91d58711d393a63c1b
um: Replace __ASSEMBLY__ with __ASSEMBLER__ in the usermode 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, 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: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-um@lists.infradead.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20250314071013.1575167-36-thuth@redhat.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/asm/cpufeature.h
arch/um/include/asm/current.h
arch/um/include/asm/page.h
arch/um/include/asm/ptrace-generic.h
arch/um/include/asm/thread_info.h
arch/um/include/shared/as-layout.h