Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1404509ybz; Fri, 17 Apr 2020 23:50:33 -0700 (PDT) X-Google-Smtp-Source: APiQypIRwKEn/9Kjnp3+c1TScEg4u0xnOBzI5F5QveG5KfhTNPOnGLA9PX8u00XzcGobBrRM12yC X-Received: by 2002:a17:906:1f47:: with SMTP id d7mr6712375ejk.37.1587192633306; Fri, 17 Apr 2020 23:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587192633; cv=none; d=google.com; s=arc-20160816; b=mZZMr4zYx6p5i2fmTQ4e0GTZH3Eh8l+3mmINtswTg0hs3T0cyKhl1SN4axis/pn94f kEu5w024hGfxpoeoMkxyRabdX4CgUyiJWwW7Do4Wklvjwx3+3XDb9PJa5itfYvSMBecz CQfui/aETy96mlWa7q1vf1UmQvs4KCNTKs2Gxz5lO4EXT1e5ZNMsSy3BL4WqABHXJ8Wg gNvCiafI+/WjJ0MgmDSsX2O+fNYPkYWyeal5N8MzD14c4MJGhF5t6hY66BXCKrgjJX8P KrB9NN8rGqWrkTjaGB6zsRy+pR9JFfiFe4CzMW8nSIvBGB7dGCXFzaBoxSZ3G8+LqkpK Fe0w== 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=d6ReZjU0dDOotBvB4TsQMHjN3j6xbq4f4D8gd400WoI=; b=bEAm3K6n1Q+iVn1OOw3AkgUiHWeY5a/HzLkqjaYj9XQeXfkD6mSleMZ48gW8f37Thr NffmB7w4f5pzDpNCK5baZwLKfbQjnIVA7jsTxPK2LmsrV3YT0PJvRpukK51QHGAbxgWy P4zncNySjx++0pXnLGZrNTUVhdR/nS9MJTwCK2wpdYcVhgzcTC9Z4og5Zdm5/XfMVWjY EepHk4bYvW0ucscP2boKgX5Sa5cdGlMOQ8fNmMR+FN6RbsAjC97PM59WBwGJvxOGRyC0 pp32Tgq4JsbgkNxwFZsdBPBWlULIgE0mOWr5f9AVmSx0tiuoRp/1WdGVjeLihLy9bIzV IrYg== 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 m18si13144621eja.298.2020.04.17.23.50.11; Fri, 17 Apr 2020 23:50:33 -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 S1726384AbgDRGsr (ORCPT + 99 others); Sat, 18 Apr 2020 02:48:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54290 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726055AbgDRGs0 (ORCPT ); Sat, 18 Apr 2020 02:48:26 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 304A21235A4284CB4A5E; Sat, 18 Apr 2020 14:48:20 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 18 Apr 2020 14:48:10 +0800 From: Huazhong Tan To: CC: , , , , , , Guojia Liao , Huazhong Tan Subject: [PATCH net-next 06/10] net: hns3: modify some unsuitable type declaration Date: Sat, 18 Apr 2020 14:47:05 +0800 Message-ID: <1587192429-11463-7-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587192429-11463-1-git-send-email-tanhuazhong@huawei.com> References: <1587192429-11463-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 90d2c77..3a08287 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