When CRYPTO_LIB_POLY1305 is unset, CRYPTO_LIB_POLY1305_RSIZE is still set in the Kconfig, cluttering things. Fix this by making CRYPTO_LIB_POLY1305_RSIZE depend on CRYPTO_LIB_POLY1305 and other various related config options. Suggested-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Jason A. Donenfeld <Jason@xxxxxxxxx> --- Changes v1->v2: - Also depend on CRYPTO_ARCH_HAVE_LIB_POLY1305 and CRYPTO_LIB_POLY1305_GENERIC, after kbuild bot warning. Hopefully this handles all the weird edge cases in this unfortunate maze. lib/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig index 379a66d7f504..7ee13c08c970 100644 --- a/lib/crypto/Kconfig +++ b/lib/crypto/Kconfig @@ -85,6 +85,7 @@ config CRYPTO_LIB_POLY1305_RSIZE default 11 if X86_64 default 9 if ARM || ARM64 default 1 + depends on CRYPTO_LIB_POLY1305 || CRYPTO_ARCH_HAVE_LIB_POLY1305 || CRYPTO_LIB_POLY1305_GENERIC config CRYPTO_ARCH_HAVE_LIB_POLY1305 tristate -- 2.35.1