crypto: qat - Make several functions static
Subsystems (2)
PATCH 1/1 crypto: qat - Make several functions static
From: Colin Ian King <[email protected]>
Functions qat_rsa_set_n, qat_rsa_set_e and qat_rsa_set_n are local to the source and do not need to be in global scope, so make them static.
Cleans up sparse warnings:drivers/crypto/qat/qat_common/qat_asym_algs.c:972:5: warning: symbol 'qat_rsa_set_n' was not declared. Should it be static? drivers/crypto/qat/qat_common/qat_asym_algs.c:1003:5: warning: symbol 'qat_rsa_set_e' was not declared. Should it be static? drivers/crypto/qat/qat_common/qat_asym_algs.c:1027:5: warning: symbol 'qat_rsa_set_d' was not declared. Should it be static?
--- drivers/crypto/qat/qat_common/qat_asym_algs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/crypto/qat/qat_common/qat_asym_algs.c +6 -3
@@ -969,7 +969,8 @@ static int qat_rsa_dec(struct akcipher_request *req)return ret; } -int qat_rsa_set_n (struct qat_rsa_ctx *ctx,const char *value,size_t vlen) +static int qat_rsa_set_n (struct qat_rsa_ctx *ctx,const char *value, +size_t vlen) {struct qat_crypto_instance *inst = ctx->inst;struct device *dev = &GET_DEV (inst->accel_dev);
@@ -1000,7 +1001,8 @@ int qat_rsa_set_n(struct qat_rsa_ctx *ctx, const char *value, size_t vlen)return ret; } -int qat_rsa_set_e (struct qat_rsa_ctx *ctx,const char *value,size_t vlen) +static int qat_rsa_set_e (struct qat_rsa_ctx *ctx,const char *value, +size_t vlen) {struct qat_crypto_instance *inst = ctx->inst;struct device *dev = &GET_DEV (inst->accel_dev);
@@ -1024,7 +1026,8 @@ int qat_rsa_set_e(struct qat_rsa_ctx *ctx, const char *value, size_t vlen)return 0 ; } -int qat_rsa_set_d (struct qat_rsa_ctx *ctx,const char *value,size_t vlen) +static int qat_rsa_set_d (struct qat_rsa_ctx *ctx,const char *value, +size_t vlen) {struct qat_crypto_instance *inst = ctx->inst;struct device *dev = &GET_DEV (inst->accel_dev);
Signature · 1 line
2.15.1
Herbert Xu
maintainerQuoted 13 lines · Colin King
From: Colin Ian King <[email protected]>
Functions
qat_rsa_set_n,qat_rsa_set_eandqat_rsa_set_nare local to the source and do not need to be in global scope, so make them static.Cleans up sparse warnings:
drivers/crypto/qat/qat_common/qat_asym_algs.c:972:5: warning: symbol 'qat_rsa_set_n' was not declared. Should it be static?drivers/crypto/qat/qat_common/qat_asym_algs.c:1003:5: warning: symbol 'qat_rsa_set_e' was not declared. Should it be static?drivers/crypto/qat/qat_common/qat_asym_algs.c:1027:5: warning: symbol 'qat_rsa_set_d' was not declared. Should it be static?
Quoted 1 line
Signed-off-by Colin Ian King <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt