crypto: af_alg - Add dependency on NET
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Nov 2010 14:56:03 +0000 (22:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Nov 2010 14:56:03 +0000 (22:56 +0800)
Add missing dependency on NET since we require sockets for our
interface.

Should really be a select but kconfig doesn't like that:

net/Kconfig:6:error: found recursive dependency: NET -> NETWORK_FILESYSTEMS -> AFS_FS -> AF_RXRPC -> CRYPTO -> CRYPTO_USER_API_HASH -> CRYPTO_USER_API -> NET

Reported-by: Zimny Lech <napohybelskurwysynom2010@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index 467491d..96b0e55 100644 (file)
@@ -848,6 +848,7 @@ config CRYPTO_USER_API
 
 config CRYPTO_USER_API_HASH
        tristate "User-space interface for hash algorithms"
+       depends on NET
        select CRYPTO_HASH
        select CRYPTO_USER_API
        help
@@ -856,6 +857,7 @@ config CRYPTO_USER_API_HASH
 
 config CRYPTO_USER_API_SKCIPHER
        tristate "User-space interface for symmetric key cipher algorithms"
+       depends on NET
        select CRYPTO_BLKCIPHER
        select CRYPTO_USER_API
        help