]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: jitterentropy - always select CRYPTO_RNG
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 13:47:10 +0000 (14:47 +0100)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Sep 2017 21:21:35 +0000 (14:21 -0700)
commit30c390044830d61c34197db174fcd2deba8c85f9
tree9a545c1cbe669487e2b0231e84ef7cacbd08e752
parentcd5ae701059162370d3792074399da223dddce6b
crypto: jitterentropy - always select CRYPTO_RNG

Orabug: 26330509

When building the jitterentropy driver by itself, we get a link error
when CRYPTO_RNG is not enabled as well:

crypto/built-in.o: In function `jent_mod_init':
jitterentropy-kcapi.c:(.init.text+0x98): undefined reference to `crypto_register_rng'
crypto/built-in.o: In function `jent_mod_exit':
jitterentropy-kcapi.c:(.exit.text+0x60): undefined reference to `crypto_unregister_rng'

This adds a 'select CRYPTO_RNG' to CRYPTO_JITTERENTROPY to ensure the API
is always there when it's used, not just when DRBG is also enabled.
CRYPTO_DRBG would set it implicitly through CRYPTO_JITTERENTROPY now,
but this leaves it in place to make it explicit what the driver does.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 2f313e029020f1fa5f58f38f48ff6988d67fc3c1)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
crypto/Kconfig