]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: sun8i-ce - remove unnecessary __maybe_unused annotations
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Tue, 2 Sep 2025 13:21:28 +0000 (16:21 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 13 Sep 2025 04:11:05 +0000 (12:11 +0800)
There are 3 instances of '__maybe_unused' annotations that are not needed,
as the variables are always used, so remove them.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c

index 113a1100f2aeb9cacb4ef167ad6fdf5495a562f1..c57c64a1a3882bdf708b1c86b2d85a16abdc87ed 100644 (file)
@@ -111,7 +111,7 @@ static int sun8i_ce_cipher_fallback(struct skcipher_request *areq)
 
        if (IS_ENABLED(CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG)) {
                struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
-               struct sun8i_ce_alg_template *algt __maybe_unused;
+               struct sun8i_ce_alg_template *algt;
 
                algt = container_of(alg, struct sun8i_ce_alg_template,
                                    alg.skcipher.base);
index 79ec172e5c995d62c7dae99b25105242c7699a4f..ba30859e749c4b5627da8a18e24840fea083f07a 100644 (file)
@@ -1062,7 +1062,7 @@ static int sun8i_ce_probe(struct platform_device *pdev)
        pm_runtime_put_sync(ce->dev);
 
        if (IS_ENABLED(CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG)) {
-               struct dentry *dbgfs_dir __maybe_unused;
+               struct dentry *dbgfs_dir;
                struct dentry *dbgfs_stats __maybe_unused;
 
                /* Ignore error of debugfs */
index 61e8d968fdcc60cf00930210f7c8d6ba72066a31..df2acef9c6795248327c4b0f38ef85b5bfeb15a1 100644 (file)
@@ -26,7 +26,7 @@
 static void sun8i_ce_hash_stat_fb_inc(struct crypto_ahash *tfm)
 {
        if (IS_ENABLED(CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG)) {
-               struct sun8i_ce_alg_template *algt __maybe_unused;
+               struct sun8i_ce_alg_template *algt;
                struct ahash_alg *alg = crypto_ahash_alg(tfm);
 
                algt = container_of(alg, struct sun8i_ce_alg_template,