]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: crypto4xx - Avoid linking failure with HW_RANDOM=m
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 30 Jan 2021 22:55:38 +0000 (14:55 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Feb 2021 03:32:05 +0000 (14:32 +1100)
It is currently possible to build CONFIG_HW_RANDOM_PPC4XX=y with
CONFIG_HW_RANDOM=m which would lead to the inability of linking with
devm_hwrng_{register,unregister}. We cannot have the framework modular
and the consumer of that framework built-in, so make that dependency
explicit.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index cc29bc3f6a6cf9b77e88672e5b6b36618c2d6181..e3e37a715fa73c4a460355c5ad10d83d176235ad 100644 (file)
@@ -348,7 +348,7 @@ config CRYPTO_DEV_PPC4XX
 
 config HW_RANDOM_PPC4XX
        bool "PowerPC 4xx generic true random number generator support"
-       depends on CRYPTO_DEV_PPC4XX && HW_RANDOM
+       depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
        default y
        help
         This option provides the kernel-side support for the TRNG hardware