crypto: inside-secure - make function safexcel_try_push_requests static
authorColin Ian King <colin.king@canonical.com>
Tue, 16 Jan 2018 07:41:58 +0000 (08:41 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jan 2018 14:10:28 +0000 (01:10 +1100)
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 <colin.king@canonical.com>
[Antoine: fixed alignment]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c

index 0d685be..225e74a 100644 (file)
@@ -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);