From: Richard Henderson Date: Mon, 10 Feb 2020 13:00:15 +0000 (+0000) Subject: random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOM X-Git-Tag: v5.7-rc1~82^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ae0c17b89cfeb511aa0770735a319d35597072;p=thirdparty%2Fkernel%2Flinux.git random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOM Listing the set of host architectures does not scale. Depend instead on the existence of the architecture rng. This will allow RANDOM_TRUST_CPU to be selected on arm64. Today ARCH_RANDOM is only selected by x86, s390, and powerpc, so this does not adversely affect other architectures. Signed-off-by: Richard Henderson Signed-off-by: Mark Rutland Link: https://lore.kernel.org/r/20200210130015.17664-5-mark.rutland@arm.com Signed-off-by: Theodore Ts'o --- diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 26956c0069876..84207d5a9bb0c 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -539,7 +539,7 @@ endmenu config RANDOM_TRUST_CPU bool "Trust the CPU manufacturer to initialize Linux's CRNG" - depends on X86 || S390 || PPC + depends on ARCH_RANDOM default n help Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or