Update some patch for uadk from mainline. To get more information, please visit the homepage: https://github.comp/Linaro/uadk Signed-off-by: Yang Shen <shenyang39@huawei.com>
45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
From af330daeb1d215c312e0e4ff74cb4bc5f0f35cad Mon Sep 17 00:00:00 2001
|
|
From: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
Date: Sun, 24 Apr 2022 09:54:25 +0800
|
|
Subject: [PATCH 120/183] uadk: fix switch statement has no default branch
|
|
|
|
msg->op_type is non-enumeral type '__u8', so switch statement
|
|
on it should have a default branch.
|
|
|
|
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
|
|
---
|
|
drv/hisi_hpre.c | 3 ++-
|
|
v1/drv/hisi_hpre_udrv.c | 2 ++
|
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drv/hisi_hpre.c b/drv/hisi_hpre.c
|
|
index 33127e0..2a15900 100644
|
|
--- a/drv/hisi_hpre.c
|
|
+++ b/drv/hisi_hpre.c
|
|
@@ -1330,7 +1330,8 @@ static int ecc_prepare_out(struct wd_ecc_msg *msg, void **data)
|
|
case WD_SM2_KG:
|
|
*data = kout->pub.x.data;
|
|
break;
|
|
- /* fall-through */
|
|
+ default:
|
|
+ break;
|
|
}
|
|
|
|
return ret;
|
|
diff --git a/v1/drv/hisi_hpre_udrv.c b/v1/drv/hisi_hpre_udrv.c
|
|
index bd87cbe..3d8a00f 100644
|
|
--- a/v1/drv/hisi_hpre_udrv.c
|
|
+++ b/v1/drv/hisi_hpre_udrv.c
|
|
@@ -1466,6 +1466,8 @@ static int qm_ecc_prepare_out(struct wcrypto_ecc_msg *msg, void **data)
|
|
case WCRYPTO_SM2_KG:
|
|
ret = ecc_prepare_sm2_kg_out(out, data);
|
|
break;
|
|
+ default:
|
|
+ break;
|
|
}
|
|
|
|
return ret;
|
|
--
|
|
2.27.0
|
|
|