mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-19 13:50:48 +00:00

Since the generic VDSO clock mode storage is used, this header file is unused and can be removed. This avoids including a non-VDSO header while building the VDSO, which can lead to compilation errors. Also drop the comment which is out of date and in the wrong place. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/all/20241010-vdso-generic-arch_update_vsyscall-v1-6-7fe5a3ea4382@linutronix.de
36 lines
848 B
C
36 lines
848 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_VDSO_VSYSCALL_H
|
|
#define __ASM_VDSO_VSYSCALL_H
|
|
|
|
#define __VDSO_RND_DATA_OFFSET 768
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include <linux/hrtimer.h>
|
|
#include <vdso/datapage.h>
|
|
#include <asm/vdso.h>
|
|
|
|
enum vvar_pages {
|
|
VVAR_DATA_PAGE_OFFSET,
|
|
VVAR_TIMENS_PAGE_OFFSET,
|
|
VVAR_NR_PAGES
|
|
};
|
|
|
|
static __always_inline struct vdso_data *__s390_get_k_vdso_data(void)
|
|
{
|
|
return vdso_data;
|
|
}
|
|
#define __arch_get_k_vdso_data __s390_get_k_vdso_data
|
|
|
|
static __always_inline struct vdso_rng_data *__s390_get_k_vdso_rnd_data(void)
|
|
{
|
|
return (void *)vdso_data + __VDSO_RND_DATA_OFFSET;
|
|
}
|
|
#define __arch_get_k_vdso_rng_data __s390_get_k_vdso_rnd_data
|
|
|
|
/* The asm-generic header needs to be included after the definitions above */
|
|
#include <asm-generic/vdso/vsyscall.h>
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
#endif /* __ASM_VDSO_VSYSCALL_H */
|