Skip to contentSkip to conversation

crypto: scompress - Remove forward declaration of crypto_scomp_show

PATCH In review Thorsten Blum 2 participants 2 messages Dec 9, 2025 – Dec 19, 2025 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 crypto/scompress.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
crypto/scompress.c +2 -4
index 1a7ed8ae65b0..70ceb2fe3d7f 100644
@@ -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");
 }
Signature · 2 lines
Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4
maintainer
#1 lore raw
Quoted 7 lines · Thorsten Blum

Add the __maybe_unused attribute to the crypto_scomp_show() definition and remove the now-unnecessary forward declaration.

---
 crypto/scompress.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt