mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
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 <julianbraha@gmail.com> Link: https://patch.msgid.link/20260503040331.71875-1-julianbraha@gmail.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
parent
77d980d06f
commit
3b60f96b85
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user