Skip to content

Commit 0138d32

Browse files
Colin Ian Kingherbertx
authored andcommitted
Crypto: atmel-ecc: Make a couple of local functions static
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 <[email protected]> Acked-by: Tudor Ambarus <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 1ce5b2f commit 0138d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/atmel-ecc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static int atmel_ecdh_compute_shared_secret(struct kpp_request *req)
492492
return ret;
493493
}
494494

495-
struct i2c_client *atmel_ecc_i2c_client_alloc(void)
495+
static struct i2c_client *atmel_ecc_i2c_client_alloc(void)
496496
{
497497
struct atmel_ecc_i2c_client_priv *i2c_priv, *min_i2c_priv = NULL;
498498
struct i2c_client *client = ERR_PTR(-ENODEV);
@@ -527,7 +527,7 @@ struct i2c_client *atmel_ecc_i2c_client_alloc(void)
527527
return client;
528528
}
529529

530-
void atmel_ecc_i2c_client_free(struct i2c_client *client)
530+
static void atmel_ecc_i2c_client_free(struct i2c_client *client)
531531
{
532532
struct atmel_ecc_i2c_client_priv *i2c_priv = i2c_get_clientdata(client);
533533

0 commit comments

Comments
 (0)