mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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 mostly a completely mechanical patch (done with a simple "sed -i" statement), except for some manual tweaks in the files arch/parisc/include/asm/smp.h, arch/parisc/include/asm/signal.h, arch/parisc/include/asm/thread_info.h and arch/parisc/include/asm/vdso.h that had the macro spelled in a wrong way. Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com> Cc: Helge Deller <deller@gmx.de> Cc: linux-parisc@vger.kernel.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Helge Deller <deller@gmx.de>
40 lines
740 B
C
40 lines
740 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_PARISC_LINKAGE_H
|
|
#define __ASM_PARISC_LINKAGE_H
|
|
|
|
#include <asm/dwarf.h>
|
|
|
|
#ifndef __ALIGN
|
|
#define __ALIGN .align 4
|
|
#define __ALIGN_STR ".align 4"
|
|
#endif
|
|
|
|
/*
|
|
* In parisc assembly a semicolon marks a comment while a
|
|
* exclamation mark is used to separate independent lines.
|
|
*/
|
|
#define ASM_NL !
|
|
|
|
#ifdef __ASSEMBLER__
|
|
|
|
#define ENTRY(name) \
|
|
ALIGN !\
|
|
name: ASM_NL\
|
|
.export name
|
|
|
|
#define ENTRY_CFI(name, ...) \
|
|
ENTRY(name) ASM_NL\
|
|
.proc ASM_NL\
|
|
.callinfo __VA_ARGS__ ASM_NL\
|
|
.entry ASM_NL\
|
|
CFI_STARTPROC
|
|
|
|
#define ENDPROC_CFI(name) \
|
|
CFI_ENDPROC ASM_NL\
|
|
.exit ASM_NL\
|
|
.procend ASM_NL\
|
|
ENDPROC(name)
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* __ASM_PARISC_LINKAGE_H */
|