Commit a3f8e009 authored by Thorsten Blum's avatar Thorsten Blum Committed by Herbert Xu
Browse files

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: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b4f275b9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -60,10 +60,8 @@ static int __maybe_unused crypto_acomp_report(
	return nla_put(skb, CRYPTOCFGA_REPORT_ACOMP, sizeof(racomp), &racomp);
}

static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;

static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
static void __maybe_unused crypto_acomp_show(struct seq_file *m,
					     struct crypto_alg *alg)
{
	seq_puts(m, "type         : acomp\n");
}
+2 −3
Original line number Diff line number Diff line
@@ -151,9 +151,8 @@ static int __maybe_unused crypto_aead_report(
	return nla_put(skb, CRYPTOCFGA_REPORT_AEAD, sizeof(raead), &raead);
}

static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;
static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
static void __maybe_unused crypto_aead_show(struct seq_file *m,
					    struct crypto_alg *alg)
{
	struct aead_alg *aead = container_of(alg, struct aead_alg, base);

+2 −3
Original line number Diff line number Diff line
@@ -801,9 +801,8 @@ static int __maybe_unused crypto_ahash_report(
	return nla_put(skb, CRYPTOCFGA_REPORT_HASH, sizeof(rhash), &rhash);
}

static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;
static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg)
static void __maybe_unused crypto_ahash_show(struct seq_file *m,
					     struct crypto_alg *alg)
{
	seq_printf(m, "type         : ahash\n");
	seq_printf(m, "async        : %s\n",
+2 −4
Original line number Diff line number Diff line
@@ -46,10 +46,8 @@ static int __maybe_unused crypto_akcipher_report(
		       sizeof(rakcipher), &rakcipher);
}

static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
	__maybe_unused;

static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
static void __maybe_unused crypto_akcipher_show(struct seq_file *m,
						struct crypto_alg *alg)
{
	seq_puts(m, "type         : akcipher\n");
}
+2 −4
Original line number Diff line number Diff line
@@ -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");
}
Loading