]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: vdso: Only try to install vDSO when present
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 9 Jul 2026 06:49:00 +0000 (08:49 +0200)
committerPaul Walmsley <pjw@kernel.org>
Wed, 29 Jul 2026 23:55:17 +0000 (17:55 -0600)
vdso.so.dbg is only built with CONFIG_MMU.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607090258.iSAUYlO1-lkp@intel.com/
Fixes: f157d411a9eb ("riscv: add missing vdso_install target")
Fixes: 3edf39916977 ("vDSO, kbuild: Provide vDSO debug variants at runtime")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260709-riscv-install-vdso-v1-1-0ba4345419ca@linutronix.de
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/Makefile

index ce0cc737f870966f63caa5f03a56b88c5a3b1e95..1363e5bef35cd7711c7f32bd2f446fe8b4097327 100644 (file)
@@ -168,7 +168,7 @@ vdso_prepare: prepare0
 endif
 endif
 
-vdso-install-y                 += arch/riscv/kernel/vdso/vdso.so.dbg
+vdso-install-$(CONFIG_MMU)             += arch/riscv/kernel/vdso/vdso.so.dbg
 vdso-install-$(CONFIG_RISCV_USER_CFI)  += arch/riscv/kernel/vdso_cfi/vdso-cfi.so.dbg
 vdso-install-$(CONFIG_COMPAT)  += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg