aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-kfr2r09/mach/romimage.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-03-14 08:10:03 +0100
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2025-06-07 15:16:21 +0200
commit9cc646950eefda5605111cbc387b00b1f741c239 (patch)
tree2e70fdc7e8ffaacf729d37c2d28fbe331d67e721 /arch/sh/include/mach-kfr2r09/mach/romimage.h
parentLinux 6.15-rc1 (diff)
downloadlinux-rng-9cc646950eefda5605111cbc387b00b1f741c239.tar.xz
linux-rng-9cc646950eefda5605111cbc387b00b1f741c239.zip
sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all 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: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: linux-sh@vger.kernel.org Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Diffstat (limited to '')
-rw-r--r--arch/sh/include/mach-kfr2r09/mach/romimage.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h
index 209275872ff0..f68bb480d378 100644
--- a/arch/sh/include/mach-kfr2r09/mach/romimage.h
+++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifdef __ASSEMBLY__
+#ifdef __ASSEMBLER__
/* kfr2r09 board specific boot code:
* converts the "partner-jet-script.txt" script into assembly
@@ -22,10 +22,10 @@
1: .long 0xa8000000
2:
-#else /* __ASSEMBLY__ */
+#else /* __ASSEMBLER__ */
static inline void mmcif_update_progress(int nr)
{
}
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */