Acked-by: Huisong Li <lihuis...@huawei.com>

在 2024/10/22 12:01, Jie Hai 写道:
The patch fixes variable type in case of data trunction.

Fixes: dd4b8bba785f ("net/hns3: support reporting names of registers")
Cc: sta...@dpdk.org

Signed-off-by: Jie Hai <haij...@huawei.com>
---
  drivers/net/hns3/hns3_regs.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/hns3/hns3_regs.c b/drivers/net/hns3/hns3_regs.c
index e8bc7fbc66e1..be6929738942 100644
--- a/drivers/net/hns3/hns3_regs.c
+++ b/drivers/net/hns3/hns3_regs.c
@@ -1178,9 +1178,9 @@ hns3_direct_access_tqp_regs_help(struct hns3_hw *hw, 
struct rte_dev_reg_info *re
                                 uint32_t modules, enum hns3_reg_modules idx)
  {
        const struct hns3_dirt_reg_entry *reg_list;
-       uint16_t tqp_num, reg_offset;
+       uint32_t reg_num, i, j, reg_offset;
        uint32_t *data = regs->data;
-       uint32_t reg_num, i, j;
+       uint16_t tqp_num;
if ((modules & HNS3_MODULE_MASK(idx)) == 0)
                return;

Reply via email to