mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Allow callers to easily reference these symbols in code that is built even when the generic datastore is disabled. As there are no good default no-op variants of these symbols, do not provide stubs but require users to have their own fallback handling using IS_ENABLED(CONFIG_HAVE_GENERIC_VDSO). Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260521-vdso-mips-kconfig-v1-2-2f79dcd6c78f@linutronix.de
17 lines
522 B
C
17 lines
522 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_VDSO_DATASTORE_H
|
|
#define _LINUX_VDSO_DATASTORE_H
|
|
|
|
#include <linux/mm_types.h>
|
|
|
|
extern const struct vm_special_mapping vdso_vvar_mapping;
|
|
struct vm_area_struct *vdso_install_vvar_mapping(struct mm_struct *mm, unsigned long addr);
|
|
|
|
#ifdef CONFIG_HAVE_GENERIC_VDSO
|
|
void __init vdso_setup_data_pages(void);
|
|
#else /* !CONFIG_HAVE_GENERIC_VDSO */
|
|
static inline void vdso_setup_data_pages(void) { }
|
|
#endif /* CONFIG_HAVE_GENERIC_VDSO */
|
|
|
|
#endif /* _LINUX_VDSO_DATASTORE_H */
|