* [PATCH] Crypto: atmel-ecc: Make a couple of local functions static
@ 2017-07-19 9:24 Colin King
2017-07-20 7:05 ` Tudor Ambarus
2017-08-03 6:22 ` Herbert Xu
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-07-19 9:24 UTC (permalink / raw)
To: Tudor Ambarus, Herbert Xu, David S . Miller, linux-crypto
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
Functions atmel_ecc_i2c_client_alloc and atmel_ecc_i2c_client_free are
local to the source and no not need to be in the global scope. Make
them static.
Cleans up sparse warnings:
symbol 'atmel_ecc_i2c_client_alloc' was not declared. Should it be static?
symbol 'atmel_ecc_i2c_client_free' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/crypto/atmel-ecc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c
index 66ab1021eba5..c6e8de2b28dd 100644
--- a/drivers/crypto/atmel-ecc.c
+++ b/drivers/crypto/atmel-ecc.c
@@ -492,7 +492,7 @@ static int atmel_ecdh_compute_shared_secret(struct kpp_request *req)
return ret;
}
-struct i2c_client *atmel_ecc_i2c_client_alloc(void)
+static struct i2c_client *atmel_ecc_i2c_client_alloc(void)
{
struct atmel_ecc_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL;
struct i2c_client *client = ERR_PTR(-ENODEV);
@@ -527,7 +527,7 @@ struct i2c_client *atmel_ecc_i2c_client_alloc(void)
return client;
}
-void atmel_ecc_i2c_client_free(struct i2c_client *client)
+static void atmel_ecc_i2c_client_free(struct i2c_client *client)
{
struct atmel_ecc_i2c_client_priv *i2c_priv = i2c_get_clientdata(client);
--
2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Crypto: atmel-ecc: Make a couple of local functions static
2017-07-19 9:24 [PATCH] Crypto: atmel-ecc: Make a couple of local functions static Colin King
@ 2017-07-20 7:05 ` Tudor Ambarus
2017-08-03 6:22 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Tudor Ambarus @ 2017-07-20 7:05 UTC (permalink / raw)
To: Colin King, Herbert Xu, David S . Miller, linux-crypto
Cc: kernel-janitors, linux-kernel
On 07/19/2017 12:24 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions atmel_ecc_i2c_client_alloc and atmel_ecc_i2c_client_free are
> local to the source and no not need to be in the global scope. Make
> them static.
>
> Cleans up sparse warnings:
> symbol 'atmel_ecc_i2c_client_alloc' was not declared. Should it be static?
> symbol 'atmel_ecc_i2c_client_free' was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Thanks,
ta
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Crypto: atmel-ecc: Make a couple of local functions static
2017-07-19 9:24 [PATCH] Crypto: atmel-ecc: Make a couple of local functions static Colin King
2017-07-20 7:05 ` Tudor Ambarus
@ 2017-08-03 6:22 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2017-08-03 6:22 UTC (permalink / raw)
To: Colin King
Cc: Tudor Ambarus, David S . Miller, linux-crypto, kernel-janitors,
linux-kernel
On Wed, Jul 19, 2017 at 10:24:15AM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions atmel_ecc_i2c_client_alloc and atmel_ecc_i2c_client_free are
> local to the source and no not need to be in the global scope. Make
> them static.
>
> Cleans up sparse warnings:
> symbol 'atmel_ecc_i2c_client_alloc' was not declared. Should it be static?
> symbol 'atmel_ecc_i2c_client_free' was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.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] 3+ messages in thread
end of thread, other threads:[~2017-08-03 6:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 9:24 [PATCH] Crypto: atmel-ecc: Make a couple of local functions static Colin King
2017-07-20 7:05 ` Tudor Ambarus
2017-08-03 6:22 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®