From: Weili Qian <qianweili@huawei.com> 1. uadk_digest.c:953:1: warning: label 'clear' defined but not used [-Wunused-label]. 2. uadk_cipher_adapter.c:142:5: warning: no previous prototype for 'uadk_e_ciphers' [-Wmissing-prototypes]. 3. uadk_aead.c:335:6: warning: unused variable 'ret' [-Wunused-variable]. 4.uadk_ec.c:499:31: warning: passing argument 2 of 'ecc_alloc_sess' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]. Signed-off-by: Weili Qian <qianweili@huawei.com> --- src/uadk_cipher_adapter.c | 2 +- src/uadk_ec.c | 2 +- src/uadk_prov.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uadk_cipher_adapter.c b/src/uadk_cipher_adapter.c index f2559ab..20e936f 100644 --- a/src/uadk_cipher_adapter.c +++ b/src/uadk_cipher_adapter.c @@ -139,7 +139,7 @@ static void uadk_e_create_ciphers(int index) } } -int uadk_e_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) +static int uadk_e_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) { __u32 i; diff --git a/src/uadk_ec.c b/src/uadk_ec.c index fb83db6..0fbbf46 100644 --- a/src/uadk_ec.c +++ b/src/uadk_ec.c @@ -191,7 +191,7 @@ static int get_smallest_hw_keybits(int bits) return ECC128BITS; } -static handle_t ecc_alloc_sess(const EC_KEY *eckey, char *alg) +static handle_t ecc_alloc_sess(const EC_KEY *eckey, const char *alg) { char buff[UADK_ECC_MAX_KEY_BYTES * UADK_ECC_CV_PARAM_NUM]; struct sched_params sch_p = {0}; diff --git a/src/uadk_prov.h b/src/uadk_prov.h index f162854..c802c71 100644 --- a/src/uadk_prov.h +++ b/src/uadk_prov.h @@ -54,8 +54,6 @@ enum HW_SYMM_ENC_DEV { HW_SYMM_ENC_V3 = 0x3 }; -typedef int CRYPTO_REF_COUNT; - struct ossl_provider_st { /* Flag bits */ unsigned int flag_initialized:1; -- 2.43.0