From 3e8541f98df72046ba788f29b05e5bd2baaa86cb Mon Sep 17 00:00:00 2001 From: Thorsten Blum Date: Tue, 9 Dec 2025 16:30:43 +0100 Subject: [PATCH] crypto: scompress - Remove forward declaration of crypto_scomp_show Add the __maybe_unused attribute to the crypto_scomp_show() definition and remove the now-unnecessary forward declaration. Signed-off-by: Thorsten Blum Signed-off-by: Herbert Xu --- crypto/scompress.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crypto/scompress.c b/crypto/scompress.c index 1a7ed8ae65b07..70ceb2fe3d7fc 100644 --- a/crypto/scompress.c +++ b/crypto/scompress.c @@ -58,10 +58,8 @@ static int __maybe_unused crypto_scomp_report( sizeof(rscomp), &rscomp); } -static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg) - __maybe_unused; - -static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg) +static void __maybe_unused crypto_scomp_show(struct seq_file *m, + struct crypto_alg *alg) { seq_puts(m, "type : scomp\n"); } -- 2.47.3