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 12:22:24 +0200 |
commit | b8969a1b69672b163d057e7745ebc915df689211 (patch) | |
tree | deeb1af7d857e08c5de0bf5e563dcb2ba3250182 /crypto/scompress.c | |
parent | crypto: engine - fix crypto_queue backlog handling (diff) | |
download | linux-b8969a1b69672b163d057e7745ebc915df689211.tar.xz linux-b8969a1b69672b163d057e7745ebc915df689211.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: c0f9e01dd266 ("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/scompress.c')
-rw-r--r-- | crypto/scompress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/scompress.c b/crypto/scompress.c index 24138b42a648..442a82c9de7d 100644 --- a/crypto/scompress.c +++ b/crypto/scompress.c @@ -240,7 +240,7 @@ static const struct crypto_type crypto_scomp_type = { #ifdef CONFIG_PROC_FS .show = crypto_scomp_show, #endif -#ifdef CONFIG_CRYPTO_USER +#if IS_ENABLED(CONFIG_CRYPTO_USER) .report = crypto_scomp_report, #endif #ifdef CONFIG_CRYPTO_STATS |