]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: sun8i-ce-cipher - use IS_ENABLED() checks for debugfs stats
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Fri, 25 Apr 2025 12:45:16 +0000 (15:45 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 11:45:26 +0000 (19:45 +0800)
commit031bc3e8b9e230df0c5380eb4a8767558c4c1a25
tree44cc55f7b37040cf3fa3d92ba2df3f70e97c68bc
parent8e379e8fb83f426a60a3ae0827743ebf881f6fde
crypto: sun8i-ce-cipher - use IS_ENABLED() checks for debugfs stats

Add IS_ENABLED(CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG) checks before the
fallback counter updates to make sure the code is not included when
debugfs statistics support is not enabled.

Also, drop the existing ifdef guards, since 'struct sun8i_ce_alg_template'
is always defined, even with CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG disabled.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Tested-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Acked-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c