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

The vdso.h header file, which is included at many places, includes generated header files. This can easily lead to recursive header file inclusions if the vdso code is changed. Therefore move the vdso symbol code, which requires the generated header files, to a separate header file, and include it at the two locations which require it. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
17 lines
499 B
C
17 lines
499 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __S390_VDSO_SYMBOLS_H__
|
|
#define __S390_VDSO_SYMBOLS_H__
|
|
|
|
#include <generated/vdso64-offsets.h>
|
|
#ifdef CONFIG_COMPAT
|
|
#include <generated/vdso32-offsets.h>
|
|
#endif
|
|
|
|
#define VDSO64_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso64_offset_##name))
|
|
#ifdef CONFIG_COMPAT
|
|
#define VDSO32_SYMBOL(tsk, name) ((tsk)->mm->context.vdso_base + (vdso32_offset_##name))
|
|
#else
|
|
#define VDSO32_SYMBOL(tsk, name) (-1UL)
|
|
#endif
|
|
|
|
#endif /* __S390_VDSO_SYMBOLS_H__ */
|