diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-05-21 09:53:16 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-06-04 19:22:45 +0300 |
| commit | 551f209164c4d2cb8d5542351f145e8257c44702 (patch) | |
| tree | b38b31eb8dea814b77c77feb2d7616bb7bf1a344 /include/linux | |
| parent | facdd1b82a41092f7f7c69f2881b946d74ede997 (diff) | |
| download | linux-551f209164c4d2cb8d5542351f145e8257c44702.tar.xz | |
vdso/datastore: Always provide symbol declarations
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
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/vdso_datastore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vdso_datastore.h b/include/linux/vdso_datastore.h index 0b530428db71..3dfba9502d78 100644 --- a/include/linux/vdso_datastore.h +++ b/include/linux/vdso_datastore.h @@ -2,12 +2,12 @@ #ifndef _LINUX_VDSO_DATASTORE_H #define _LINUX_VDSO_DATASTORE_H -#ifdef CONFIG_HAVE_GENERIC_VDSO #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) { } |
