crypto: api - remove unnecessary forward declarations

Add the __maybe_unused attribute to the function definitions and remove
the now-unnecessary forward declarations.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Thorsten Blum
2025-12-22 11:44:55 +01:00
committed by Herbert Xu
parent b4f275b92d
commit a3f8e00991
8 changed files with 16 additions and 27 deletions

View File

@@ -29,10 +29,8 @@ static int __maybe_unused crypto_kpp_report(
return nla_put(skb, CRYPTOCFGA_REPORT_KPP, sizeof(rkpp), &rkpp);
}
static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
__maybe_unused;
static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
static void __maybe_unused crypto_kpp_show(struct seq_file *m,
struct crypto_alg *alg)
{
seq_puts(m, "type : kpp\n");
}