
Solve the compilation warning problem. Signed-off-by: Qi Tao <taoqi10@huawei.com> --- v1/wd_aead.c | 2 +- wd_util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v1/wd_aead.c b/v1/wd_aead.c index 2b98547f..cb36a166 100644 --- a/v1/wd_aead.c +++ b/v1/wd_aead.c @@ -472,7 +472,7 @@ static int check_op_data(struct wcrypto_aead_op_data **op, } } if (unlikely(op[idx]->state >= WCRYPTO_AEAD_MSG_INVALID)) { - WD_ERR("fail to check message state: %d, idx: %u!\n", + WD_ERR("fail to check message state: %u, idx: %u!\n", op[idx]->state, idx); return -WD_EINVAL; } else if (idx && op[idx]->state != WCRYPTO_AEAD_MSG_BLOCK) { diff --git a/wd_util.c b/wd_util.c index 01536f4c..1992a5d4 100644 --- a/wd_util.c +++ b/wd_util.c @@ -1891,7 +1891,7 @@ int wd_init_param_check(struct wd_ctx_config *config, struct wd_sched *sched) static void wd_get_alg_type(const char *alg_name, char *alg_type) { - int i; + __u64 i; for (i = 0; i < ARRAY_SIZE(alg_options); i++) { if (strcmp(alg_name, alg_options[i].name) == 0) { -- 2.33.0