Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 059bfd11 authored by Colin Ian King's avatar Colin Ian King Committed by Herbert Xu
Browse files

crypto: inside-secure - make function safexcel_try_push_requests static



The function safexcel_try_push_requests  is local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'safexcel_try_push_requests' was not declared. Should it be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
[Antoine: fixed alignment]
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6e36719f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -432,8 +432,8 @@ static int safexcel_hw_init(struct safexcel_crypto_priv *priv)
}

/* Called with ring's lock taken */
int safexcel_try_push_requests(struct safexcel_crypto_priv *priv, int ring,
			       int reqs)
static int safexcel_try_push_requests(struct safexcel_crypto_priv *priv,
				      int ring, int reqs)
{
	int coal = min_t(int, reqs, EIP197_MAX_BATCH_SZ);