summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-12-09 18:30:43 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-12-19 09:47:47 +0300
commit3e8541f98df72046ba788f29b05e5bd2baaa86cb (patch)
tree2f59c37ccef9da38b6d093ea722e2a7bab586a19
parent97282e2cdecb209b4d19b2a7c52eb71fb8a82435 (diff)
downloadlinux-3e8541f98df72046ba788f29b05e5bd2baaa86cb.tar.xz
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 <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/scompress.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/scompress.c b/crypto/scompress.c
index 1a7ed8ae65b0..70ceb2fe3d7f 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");
}