diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-03-14 08:10:05 +0100 |
|---|---|---|
| committer | Andreas Larsson <andreas@gaisler.com> | 2025-09-26 17:06:09 +0200 |
| commit | 3b1307e1cd1224a063a1791d213dfdd35b05a38a (patch) | |
| tree | 38ac65017f3f09a3844ae6fe48aa3e4014ccf2cf /arch/sparc/include/asm/mmu_context_32.h | |
| parent | sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers (diff) | |
| download | linux-3b1307e1cd1224a063a1791d213dfdd35b05a38a.tar.gz linux-3b1307e1cd1224a063a1791d213dfdd35b05a38a.zip | |
sparc: 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: David S. Miller <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'arch/sparc/include/asm/mmu_context_32.h')
| -rw-r--r-- | arch/sparc/include/asm/mmu_context_32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/mmu_context_32.h b/arch/sparc/include/asm/mmu_context_32.h index 509043f81560..d9ff73f776f9 100644 --- a/arch/sparc/include/asm/mmu_context_32.h +++ b/arch/sparc/include/asm/mmu_context_32.h @@ -2,7 +2,7 @@ #ifndef __SPARC_MMU_CONTEXT_H #define __SPARC_MMU_CONTEXT_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #include <asm-generic/mm_hooks.h> @@ -29,6 +29,6 @@ void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, #include <asm-generic/mmu_context.h> -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* !(__SPARC_MMU_CONTEXT_H) */ |
