Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1782706imm; Thu, 19 Jul 2018 07:49:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpewGj8UnGxjNSav1JXxIb0ZHTqT69Ul9wW8ZXBfHYB+BQg9yGNYoqcNYdKNKard4BOSuq1g X-Received: by 2002:a62:129a:: with SMTP id 26-v6mr9892599pfs.102.1532011760143; Thu, 19 Jul 2018 07:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011760; cv=none; d=google.com; s=arc-20160816; b=tYluB+WjSiANryD/GdBLbg2Ia7WESJfvmzIDL3OddwJF4+n2uuE320xWIehiGRI/93 jxCGaFeZT4QoB5anZTXXuZZ3uA0Tzttg4jCX3nQWPjTXlj/+PIYtsSdWTEOxbyYjr2ow 13cUWUcaL/CUs40T3fDjVZ0Ssw96nTlxUVTHw2d+o9H/e8+78PFoAHLBINnKbUed5h+D UIYAj9tZdI79Ds8G6sFtDosM+epkVpYfiHsnmZB27xB5zBPgZbIPpl9LwAy3RyIhiiQN lMzh4FI6DK2vFcSaXurTRjGu4T/AyN1oLuRHpO3JKuACR1j1BYS09T9uQnEmmKi1D0ht GHag== 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:arc-authentication-results; bh=t4VkGlB+d8q1+v+sSUVvBRR2hbKcuofQQNDd2Rx7eXo=; b=X1Ia39+e1IJxCo5KxMPj3rNjlwMyCXqe/182ADD6JK/WoUovhb2fzPDNB07UKafTug YQgDdcxJbEVSPTamCSPKBv4XXMuCkrQQ9Sh3UNodcaa+rIiwC0yW3Tfk0XMWRDBlIN/5 LC3Du0QQrausWqjhUdov2l5N9QjR1rM334imMw1tEtfl3t5TZJz0L0tP+7iJCmoTQ7EY friONQD+daFIOtNX9VCSUrJ+LgtKizR7FykudodMCyZ6GWY4AxzR1fuJha3dfF40BLc6 jTtF4BviHXqR+Vp879XQ/bTStuZUAEeSzB1puZgpw0QX8M2mbMWVuGy7x49GHzxVzD1W f05Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si6917461pli.289.2018.07.19.07.49.05; Thu, 19 Jul 2018 07:49:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731999AbeGSPbv (ORCPT + 99 others); Thu, 19 Jul 2018 11:31:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54326 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730521AbeGSPbu (ORCPT ); Thu, 19 Jul 2018 11:31:50 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7E4D2A1DF6FE; Thu, 19 Jul 2018 22:48:15 +0800 (CST) Received: from S00293818-DELL1.huawei.com (10.202.226.54) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Thu, 19 Jul 2018 22:48:06 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 7/9] net: hns3: Fix misleading parameter name Date: Thu, 19 Jul 2018 15:47:04 +0100 Message-ID: <20180719144706.644-8-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180719144706.644-1-salil.mehta@huawei.com> References: <20180719144706.644-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen The input parameter "dev" of hns3_irq_handle() is indeed used as a tqp vector, it is misleadin. The struct member "flag" is used to indicate ring type, so rename it. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++-- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 4 ++-- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 29be96e..ba2797e 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -62,9 +62,9 @@ static const struct pci_device_id hns3_pci_tbl[] = { }; MODULE_DEVICE_TABLE(pci, hns3_pci_tbl); -static irqreturn_t hns3_irq_handle(int irq, void *dev) +static irqreturn_t hns3_irq_handle(int irq, void *vector) { - struct hns3_enet_tqp_vector *tqp_vector = dev; + struct hns3_enet_tqp_vector *tqp_vector = vector; napi_schedule(&tqp_vector->napi); diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index cf40afc..68356da 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -72,7 +72,7 @@ static int hclge_alloc_cmd_queue(struct hclge_dev *hdev, int ring_type) (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; int ret; - ring->flag = ring_type; + ring->ring_type = ring_type; ring->dev = hdev; ret = hclge_alloc_cmd_desc(ring); @@ -111,7 +111,7 @@ static void hclge_cmd_config_regs(struct hclge_cmq_ring *ring) struct hclge_dev *hdev = ring->dev; struct hclge_hw *hw = &hdev->hw; - if (ring->flag == HCLGE_TYPE_CSQ) { + if (ring->ring_type == HCLGE_TYPE_CSQ) { hclge_write_dev(hw, HCLGE_NIC_CSQ_BASEADDR_L_REG, lower_32_bits(dma)); hclge_write_dev(hw, HCLGE_NIC_CSQ_BASEADDR_H_REG, diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index ec7b8d7..54e199d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -45,7 +45,7 @@ struct hclge_cmq_ring { u16 desc_num; int next_to_use; int next_to_clean; - u8 flag; + u8 ring_type; /* cmq ring type */ spinlock_t lock; /* Command queue lock */ }; -- 2.7.4