From faeff8d416c4c324030d1296a545024c44ddac51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Thu, 9 Jul 2026 09:28:40 +0200 Subject: [PATCH] vdso: Automatically select HAVE_GENERIC_VDSO if necessary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gettimeofday() and getrandom() in the vDSO require the vDSO datastore. Enable it automatically if either one of them is enabled so the architecture code doesn't need to know this. Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Reviewed-by: Vincenzo Frascino Reviewed-by: Philippe Mathieu-Daudé Link: https://patch.msgid.link/20260709-vdso-have_generic_vdso-v1-4-d2e1061f268b@linutronix.de --- lib/vdso/Kconfig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig index db87ba34ef19..eedb04974fd5 100644 --- a/lib/vdso/Kconfig +++ b/lib/vdso/Kconfig @@ -3,10 +3,9 @@ config HAVE_GENERIC_VDSO bool -if HAVE_GENERIC_VDSO - config GENERIC_GETTIMEOFDAY bool + select HAVE_GENERIC_VDSO help This is a generic implementation of gettimeofday vdso. Each architecture that enables this feature has to @@ -21,7 +20,6 @@ config GENERIC_VDSO_OVERFLOW_PROTECT config VDSO_GETRANDOM bool + select HAVE_GENERIC_VDSO help Selected by architectures that support vDSO getrandom(). - -endif