Skip to content

Commit 23ae0c1

Browse files
rth7680tytso
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent ead5084 commit 23ae0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ endmenu
539539

540540
config RANDOM_TRUST_CPU
541541
bool "Trust the CPU manufacturer to initialize Linux's CRNG"
542-
depends on X86 || S390 || PPC
542+
depends on ARCH_RANDOM
543543
default n
544544
help
545545
Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or

0 commit comments

Comments
 (0)