[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140629122015.43f5178a@canb.auug.org.au>
Date: Sun, 29 Jun 2014 12:20:15 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Stephan Mueller <smueller@...onox.de>
Cc: Herbert Xu <herbert@...dor.apana.org.au>,
kbuild test robot <fengguang.wu@...el.com>, kbuild@...org,
Dan Carpenter <dan.carpenter@...cle.com>,
linux-crypto@...r.kernel.org, Randy Dunlap <rdunlap@...radead.org>,
linux-next@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/4] DRBG: cleanup of preprocessor macros
Hi Stephan,
On Sat, 28 Jun 2014 22:00:07 +0200 Stephan Mueller <smueller@...onox.de> wrote:
>
> diff --git a/crypto/drbg.c b/crypto/drbg.c
> index 6679a26..03a230e 100644
> --- a/crypto/drbg.c
> +++ b/crypto/drbg.c
> @@ -102,8 +102,13 @@
> #if !defined(CONFIG_CRYPTO_DRBG_HASH) && \
> !defined(CONFIG_CRYPTO_DRBG_HMAC) && \
> !defined(CONFIG_CRYPTO_DRBG_CTR)
> -#warning "The DRBG code is useless without compiling at least one DRBG type"
> -#endif
> +#define CRYPTO_DRBG_NONE_STRING "none "
> +static int __init drbg_init(void)
> +{
> + pr_warn("DRBG: no DRBG core was compiled!\n");
> + return -EFAULT;
> +}
> +#else
Wouldn't this be better handled by Kconfig so that we don't even try to
build this unless one of the required core modules is chosen?
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists