* [PATCH v2] crypto: inside-secure - make function safexcel_try_push_requests static
@ 2018-01-16 7:41 Antoine Tenart
2018-01-26 15:44 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Antoine Tenart @ 2018-01-16 7:41 UTC (permalink / raw)
To: colin.king, herbert, davem
Cc: thomas.petazzoni, gregory.clement, miquel.raynal, oferh, igall,
nadavh, linux-crypto, Antoine Tenart
From: Colin Ian King <colin.king@canonical.com>
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>
---
Hi Colin, Herbert,
I took care of making the v2 of this patch since the fix was trivial and
v1 was sent 2 weeks ago.
Thanks!
Antoine
Since v1:
- Fixed the alignment to match open parenthesis.
drivers/crypto/inside-secure/safexcel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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);
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] crypto: inside-secure - make function safexcel_try_push_requests static
2018-01-16 7:41 [PATCH v2] crypto: inside-secure - make function safexcel_try_push_requests static Antoine Tenart
@ 2018-01-26 15:44 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2018-01-26 15:44 UTC (permalink / raw)
To: Antoine Tenart
Cc: colin.king, davem, thomas.petazzoni, gregory.clement,
miquel.raynal, oferh, igall, nadavh, linux-crypto
On Tue, Jan 16, 2018 at 08:41:58AM +0100, Antoine Tenart wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-26 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 7:41 [PATCH v2] crypto: inside-secure - make function safexcel_try_push_requests static Antoine Tenart
2018-01-26 15:44 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.