diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2023-05-02 10:02:33 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-05-02 18:22:24 +0800 |
commit | a56cdee6589d1ea73db1c2b32d79d227e05da5c9 (patch) | |
tree | cc6f4fee60251bb1da8f88090f38f59cf3f62ed2 /crypto/ahash.c | |
parent | bd3582c0f1d99c5c251eb062ed71d2ed7085eede (diff) | |
download | linux-crypto-a56cdee6589d1ea73db1c2b32d79d227e05da5c9.tar.gz linux-crypto-a56cdee6589d1ea73db1c2b32d79d227e05da5c9.zip |
crypto: api - Fix CRYPTO_USER checks for report function
Checking the config via ifdef incorrectly compiles out the report
functions when CRYPTO_USER is set to =m. Fix it by using IS_ENABLED()
instead.
Fixes: 581057dc5194 ("crypto: api - Check CRYPTO_USER instead of NET for report")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r-- | crypto/ahash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c index b8a60792..32465104 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -509,7 +509,7 @@ static const struct crypto_type crypto_ahash_type = { #ifdef CONFIG_PROC_FS .show = crypto_ahash_show, #endif -#ifdef CONFIG_CRYPTO_USER +#if IS_ENABLED(CONFIG_CRYPTO_USER) .report = crypto_ahash_report, #endif #ifdef CONFIG_CRYPTO_STATS |