Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3160244ybz; Sun, 19 Apr 2020 19:22:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJIQPAsydor5wF72AdYqxxD9JQY0CfdVd+xEB75+ctlMdZ54ATwkw60lrCbFxjnrJOxzXny X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr14100804ejb.110.1587349369902; Sun, 19 Apr 2020 19:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587349369; cv=none; d=google.com; s=arc-20160816; b=qRhDwJ4BbgnFzrRCcHeONHrYhiMTnTrToFILkJwryKHS4QY2K6QWMzb3+nNx4f4VSt XQDHCuM4EUjlk11u1O7pgHuVODezH1IqsA8FGOOkaoxqi8mC1ydrR/YjFaa9UGli4xfu reza3rrPvingt7NlnxezyZKPF30Sk2ap2qYNPi8vproC9x+773BKN9LtlTG/HEIMeukz 6C2O8kW+yKd1FDHj8QGSrMTF2gb3jVvPHmYYb3GyNdMAOfKT+Jgyhuwko/T5Cn6QlP4Q 8/La4eqqSOGVBZWY3j5w40nU4NCFZQyMVDAQHjX1amI0+p6130I1aV7X0cWoEKsQzBiF R/yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=D7UsduODfXKcAbltqpnmxBvHZWQ6T2jP8b+q5arJD+Y=; b=OXKCC8PKWT3lha8/GXmKMj6VagcKkOUgN9dnMkirdnWUW2T9ALsTdlOzn2uwqNQLgS LekDTp6so3lxzYht4GyLRR6X/dCKy20XVNBQC4CzfNwog3E7BId+1qpIbypwxSR3Ey3J raWgG4XPzu1pS2UOooB7FfFxTlvwjBAJruq3PCETGmy3ApXrqlahdAllmbeFb5o1oYpt Ip7o1jGvGYZcP7EHhPgWjvdWFmE+X+o1KEXVGskm8+VI8jWrUcZ5kKw/g/4k31+tAEtG B/IoACVGH7KCjIas0P6KqQU8J21Zup5HNqda62mOjGAHA6YV0vVASn5Pz71WAdILRPgZ kN7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si18292688ejc.152.2020.04.19.19.22.26; Sun, 19 Apr 2020 19:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgDTCTN (ORCPT + 99 others); Sun, 19 Apr 2020 22:19:13 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2803 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726361AbgDTCSu (ORCPT ); Sun, 19 Apr 2020 22:18:50 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 54469A1480C227E3EB12; Mon, 20 Apr 2020 10:18:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 10:18:35 +0800 From: Huazhong Tan To: CC: , , , , , , Guojia Liao , Huazhong Tan Subject: [PATCH V2 net-next 06/10] net: hns3: modify some unsuitable type declaration Date: Mon, 20 Apr 2020 10:17:31 +0800 Message-ID: <1587349055-4403-7-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587349055-4403-1-git-send-email-tanhuazhong@huawei.com> References: <1587349055-4403-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guojia Liao In hclge_set_fd_key_config(), parameter 'stage' should be as enum HCLGE_FD_STAGE, and in hclge_config_key(), 'tuple_size' should be type u8, also simplify unsigned int with u32 for 'i'. Signed-off-by: Guojia Liao Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index e238a9d..9edee7d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -4822,7 +4822,8 @@ static int hclge_get_fd_allocation(struct hclge_dev *hdev, return ret; } -static int hclge_set_fd_key_config(struct hclge_dev *hdev, int stage_num) +static int hclge_set_fd_key_config(struct hclge_dev *hdev, + enum HCLGE_FD_STAGE stage_num) { struct hclge_set_fd_key_config_cmd *req; struct hclge_fd_key_cfg *stage; @@ -5158,9 +5159,10 @@ static int hclge_config_key(struct hclge_dev *hdev, u8 stage, struct hclge_fd_key_cfg *key_cfg = &hdev->fd_cfg.key_cfg[stage]; u8 key_x[MAX_KEY_BYTES], key_y[MAX_KEY_BYTES]; u8 *cur_key_x, *cur_key_y; - unsigned int i; - int ret, tuple_size; u8 meta_data_region; + u8 tuple_size; + int ret; + u32 i; memset(key_x, 0, sizeof(key_x)); memset(key_y, 0, sizeof(key_y)); -- 2.7.4