mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07: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
253 B
C
15 lines
253 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020 ARM Ltd.
|
|
*/
|
|
#ifndef __VDSO_PROCESSOR_H
|
|
#define __VDSO_PROCESSOR_H
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
#include <asm/vdso/processor.h>
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* __VDSO_PROCESSOR_H */
|