86 lines
3.0 KiB
Diff
86 lines
3.0 KiB
Diff
|
|
From 6a83adca797b8917907d56097f72b3755acf74fa Mon Sep 17 00:00:00 2001
|
||
|
|
From: Wenkai Lin <linwenkai6@hisilicon.com>
|
||
|
|
Date: Mon, 27 Dec 2021 09:51:59 +0800
|
||
|
|
Subject: [PATCH 13/28] uadk: fix comment content
|
||
|
|
|
||
|
|
There must be 1 space between the block comment character
|
||
|
|
and the comment content.
|
||
|
|
|
||
|
|
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
|
||
|
|
---
|
||
|
|
v1/drv/hisi_qm_udrv.c | 2 +-
|
||
|
|
v1/wd_cipher.h | 2 +-
|
||
|
|
v1/wd_dh.h | 2 +-
|
||
|
|
wd_comp.c | 2 +-
|
||
|
|
wd_util.c | 2 +-
|
||
|
|
5 files changed, 5 insertions(+), 5 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/v1/drv/hisi_qm_udrv.c b/v1/drv/hisi_qm_udrv.c
|
||
|
|
index 02aaf81..63f346b 100644
|
||
|
|
--- a/v1/drv/hisi_qm_udrv.c
|
||
|
|
+++ b/v1/drv/hisi_qm_udrv.c
|
||
|
|
@@ -77,7 +77,7 @@ static int qm_hw_sgl_sge_init(struct wd_sgl *sgl, struct hisi_sgl *hisi_sgl,
|
||
|
|
return WD_SUCCESS;
|
||
|
|
}
|
||
|
|
|
||
|
|
-/* 'num' starts from 1*/
|
||
|
|
+/* 'num' starts from 1 */
|
||
|
|
void qm_hw_sgl_sge_uninit(struct wd_sgl *sgl, struct hisi_sgl *hisi_sgl,
|
||
|
|
int num, struct wd_mm_br *br, __u32 buf_sz)
|
||
|
|
{
|
||
|
|
diff --git a/v1/wd_cipher.h b/v1/wd_cipher.h
|
||
|
|
index 2ab0e1d..7059f53 100644
|
||
|
|
--- a/v1/wd_cipher.h
|
||
|
|
+++ b/v1/wd_cipher.h
|
||
|
|
@@ -92,7 +92,7 @@ struct wcrypto_cipher_op_data {
|
||
|
|
/* Cipher message format of Warpdrive */
|
||
|
|
struct wcrypto_cipher_msg {
|
||
|
|
__u8 alg_type:4; /* Denoted by enum wcrypto_type */
|
||
|
|
- __u8 alg:4; /* Denoted by enum wcrypto_cipher_alg*/
|
||
|
|
+ __u8 alg:4; /* Denoted by enum wcrypto_cipher_alg */
|
||
|
|
__u8 op_type:4; /* Denoted by enum wcrypto_cipher_op_type */
|
||
|
|
__u8 mode:4; /* Denoted by enum wcrypto_cipher_mode */
|
||
|
|
__u8 data_fmt; /* Data format, denoted by enum wcrypto_buff_type */
|
||
|
|
diff --git a/v1/wd_dh.h b/v1/wd_dh.h
|
||
|
|
index 6364966..e411830 100644
|
||
|
|
--- a/v1/wd_dh.h
|
||
|
|
+++ b/v1/wd_dh.h
|
||
|
|
@@ -64,7 +64,7 @@ struct wcrypto_dh_msg {
|
||
|
|
__u8 result; /* Data format, denoted by WD error code */
|
||
|
|
__u16 key_bytes; /* Key size */
|
||
|
|
__u8 *x_p; /* This is Xa and p data in order. Should be DMA buffer */
|
||
|
|
- __u8 *g; /* This is PV also at phase 2. Should be DMA buffer*/
|
||
|
|
+ __u8 *g; /* This is PV also at phase 2. Should be DMA buffer */
|
||
|
|
__u8 *out; /* Result address, should be DMA buffer */
|
||
|
|
__u16 xbytes; /* parameter Xa size */
|
||
|
|
__u16 pbytes; /* parameter p size */
|
||
|
|
diff --git a/wd_comp.c b/wd_comp.c
|
||
|
|
index 6f0cf9d..e34d590 100644
|
||
|
|
--- a/wd_comp.c
|
||
|
|
+++ b/wd_comp.c
|
||
|
|
@@ -584,7 +584,7 @@ static int append_store_block(struct wd_comp_sess *sess,
|
||
|
|
memcpy(req->dst, store_block, blocksize);
|
||
|
|
req->dst_len = blocksize;
|
||
|
|
checksum = (__u32) cpu_to_be32(checksum);
|
||
|
|
- /*if zlib, ADLER32*/
|
||
|
|
+ /* if zlib, ADLER32 */
|
||
|
|
memcpy(req->dst + blocksize, &checksum, sizeof(checksum));
|
||
|
|
req->dst_len += sizeof(checksum);
|
||
|
|
} else if (sess->alg_type == WD_GZIP) {
|
||
|
|
diff --git a/wd_util.c b/wd_util.c
|
||
|
|
index 3c1fd26..3170f3c 100644
|
||
|
|
--- a/wd_util.c
|
||
|
|
+++ b/wd_util.c
|
||
|
|
@@ -34,7 +34,7 @@ static const char *comp_ctx_type[2][2] = {
|
||
|
|
{"async-comp:", "async-decomp:"}
|
||
|
|
};
|
||
|
|
|
||
|
|
-/* define two ctx mode here for cipher and other alg*/
|
||
|
|
+/* define two ctx mode here for cipher and other alg */
|
||
|
|
static const char *ctx_type[2][1] = { {"sync:"}, {"async:"} };
|
||
|
|
|
||
|
|
struct async_task {
|
||
|
|
--
|
||
|
|
2.31.1
|
||
|
|
|