From: Colin Ian King Date: Tue, 16 Jan 2018 07:41:58 +0000 (+0100) Subject: crypto: inside-secure - make function safexcel_try_push_requests static X-Git-Tag: v4.16-rc1~124^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=059bfd1171069025dc134a95f7fcce27483fba41;p=users%2Fwilly%2Fxarray.git 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: Colin Ian King [Antoine: fixed alignment] Signed-off-by: Antoine Tenart Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c index 0d685be75241..225e74a7f724 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -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);