libwd/0141-uadk-fix-comment-blank.patch
Yang Shen ec2f993b84 libwd: backport for uadk from 2.3.31 to 2.3.36
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>
2022-07-28 15:32:23 +08:00

69 lines
2.2 KiB
Diff

From 28904d5266bc827b05ac1beb5e819878b56fc3f2 Mon Sep 17 00:00:00 2001
From: Wenkai Lin <linwenkai6@hisilicon.com>
Date: Sat, 23 Jul 2022 16:50:23 +0800
Subject: [PATCH 156/183] uadk: fix comment blank
Use 1 blank space(' ') instead of TAB('\t')
between the right comment and the previous code.
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
---
v1/drv/dummy_drv.c | 4 ++--
v1/internal/dummy_hw_usr_if.h | 2 +-
v1/wd_util.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/v1/drv/dummy_drv.c b/v1/drv/dummy_drv.c
index 206fa2b..f551b79 100644
--- a/v1/drv/dummy_drv.c
+++ b/v1/drv/dummy_drv.c
@@ -30,8 +30,8 @@
struct dummy_q_priv {
int ver;
- int head; /* queue head */
- int resp_tail; /* resp tail in the queue */
+ int head; /* queue head */
+ int resp_tail; /* resp tail in the queue */
/* so in the user side: when add to queue, head++ but don't exceed resp_tail.
* when get back from the queue, resp_tail++ but don't exceed tail.
* in the kernel side: when get from queue, tail++ but don't exceed head-1 */
diff --git a/v1/internal/dummy_hw_usr_if.h b/v1/internal/dummy_hw_usr_if.h
index c35f75d..3a9df48 100644
--- a/v1/internal/dummy_hw_usr_if.h
+++ b/v1/internal/dummy_hw_usr_if.h
@@ -35,7 +35,7 @@
/* the format of the device io space, which is of drv */
struct dummy_hw_queue_reg {
- char hw_tag[DUMMY_HW_TAG_SZ]; /* should be "WDDUMMY\0" */
+ char hw_tag[DUMMY_HW_TAG_SZ]; /* should be "WDDUMMY\0" */
struct ring_bd ring[Q_BDS]; /* in real hardware, this is good to be
in memory space, and will be fast
for communication. here we keep it
diff --git a/v1/wd_util.h b/v1/wd_util.h
index d1642f8..e69b5f9 100644
--- a/v1/wd_util.h
+++ b/v1/wd_util.h
@@ -359,7 +359,7 @@ struct wcrypto_ecc_out {
static inline void wd_reg_write(void *reg_addr, uint32_t value)
{
*((uint32_t *)reg_addr) = value;
- wmb(); /* load fence */
+ wmb(); /* load fence */
}
static inline uint32_t wd_reg_read(void *reg_addr)
@@ -367,7 +367,7 @@ static inline uint32_t wd_reg_read(void *reg_addr)
uint32_t temp;
temp = *((uint32_t *)reg_addr);
- rmb(); /* load fence */
+ rmb(); /* load fence */
return temp;
}
--
2.27.0