From: Julian Braha Date: Sun, 3 May 2026 04:03:31 +0000 (+0100) Subject: riscv: replace select with dependency for visible RELOCATABLE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b60f96b852a139ae8256426f2a69e2410f82c9c;p=thirdparty%2Flinux.git riscv: replace select with dependency for visible RELOCATABLE RANDOMIZE_BASE currently selects RELOCATABLE even though RELOCATABLE is visible to users. Some other architectures, like x86, use 'depends on' for RELOCATABLE in their definition of RANDOMIZE_BASE, so let's do the same here. This select-visible Kconfig misusage was detected by Kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha Link: https://patch.msgid.link/20260503040331.71875-1-julianbraha@gmail.com Signed-off-by: Paul Walmsley --- diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a5e4f438e381..b1101c336c7c 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -1164,7 +1164,7 @@ config RELOCATABLE config RANDOMIZE_BASE bool "Randomize the address of the kernel image" - select RELOCATABLE + depends on RELOCATABLE depends on MMU && 64BIT help Randomizes the virtual address at which the kernel image is