mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04: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 standardize now on the __ASSEMBLER__ macro that is provided by the compilers. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://patch.msgid.link/20260619100600.121042-1-thuth@redhat.com
15 lines
290 B
C
15 lines
290 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __VDSO_VSYSCALL_H
|
|
#define __VDSO_VSYSCALL_H
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
#include <asm/vdso/vsyscall.h>
|
|
|
|
unsigned long vdso_update_begin(void);
|
|
void vdso_update_end(unsigned long flags);
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
#endif /* __VDSO_VSYSCALL_H */
|