Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp792953imm; Fri, 29 Jun 2018 06:32:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd52i1wSdok4Mjmn+2e7Z+vf14BUyn4VnM89E4rPUhZPcz323+B9agbCgnGvyBur+VInXoW X-Received: by 2002:a62:c20e:: with SMTP id l14-v6mr14643790pfg.185.1530279146332; Fri, 29 Jun 2018 06:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530279146; cv=none; d=google.com; s=arc-20160816; b=ZN/FaVdxTgDmum66lxfOvMn0x4UXitOjd98vk5ciJjlYu3wMU6ikXaUyNpUT8WUSi2 +e3tK4nwSZrs41YGo69MtTe8uONaZ5nsk518CzO2xbgEqD0LhI+Bsd5RuxO9uIyLlPJn 64gVthoH6VXXVPlaHbgnQWCoPq5gQmPwiknRQvyupavEaU88PpDXHuZRU0yWmASgVeV3 ANNnnOKhdTkQoFXd9nzaiZPZcAkJu1ieFwRsxDKbGoUyGu2qD5eOdh34iHrccQVi5vWU 3SCoWqaTwYSiIQT6eCTMf0Kc3f+luvRKQFkVCPX6Yw96ZsHasHG5ghd9DgQE4PpEeQYe h0kw== 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=i7tyDtiKEGw61PHz6XaPhIh1ehmfp/BODzhh6Fk72DY=; b=fFAKI2nuxpS6B5bFCZ8KEMdx8nFoceU/Zv+gLLRRH9ndb8xj0YXKMSTyf+PygRqavu ZI1WBXP/0ORR7CEm+eUgfu1m5+6onUXLMs/2Y5Wi/odwjVOF3oWomyS9A1JIjWEnFNJx +US7HcCgGJo+i6JQenzHfxoB9y5af66uyu9UZch7UQ8sVYnuxpYbzILxVKZFeXPARCS1 FEo1/iasthb+T2iX+Oh7D/XQRFMlF9lPpzYQgDaTgi3yptOgIfVYQcLj5XSch/a4qpED meLUzYoV4dsA9QUCIZngV8BrtoyPlGe/dPHIlvOu8KKRqf8paDUx0W4Bn/O65pB3/am1 sOFw== 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 z1-v6si9211318plo.516.2018.06.29.06.32.12; Fri, 29 Jun 2018 06:32:26 -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 S932429AbeF2Kzw (ORCPT + 99 others); Fri, 29 Jun 2018 06:55:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59983 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932213AbeF2Kyt (ORCPT ); Fri, 29 Jun 2018 06:54:49 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9A90973F3635B; Fri, 29 Jun 2018 18:54:37 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.382.0; Fri, 29 Jun 2018 18:51:24 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH net-next 07/10] net: hns3: remove some unused members of some structures Date: Fri, 29 Jun 2018 19:23:02 +0800 Message-ID: <1530271385-49668-8-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> References: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan Some members in struct hns3_enet_tqp_vector, struct hnae3_client and struct hnae3_ae_algo are unused. This patch removes them. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 -- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 - drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 - drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 1 - 4 files changed, 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 8acb1d1..422c56b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -167,7 +167,6 @@ struct hnae3_client_ops { #define HNAE3_CLIENT_NAME_LENGTH 16 struct hnae3_client { char name[HNAE3_CLIENT_NAME_LENGTH]; - u16 version; unsigned long state; enum hnae3_client_type type; const struct hnae3_client_ops *ops; @@ -436,7 +435,6 @@ struct hnae3_dcb_ops { struct hnae3_ae_algo { const struct hnae3_ae_ops *ops; struct list_head node; - char name[HNAE3_CLASS_NAME_SIZE]; const struct pci_device_id *pdev_id_table; }; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 3b083d5a..8d6096c 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -499,7 +499,6 @@ struct hns3_enet_tqp_vector { u16 num_tqps; /* total number of tqps in TQP vector */ - cpumask_t affinity_mask; char name[HNAE3_INT_NAME_LEN]; /* when 0 should adjust interrupt coalesce parameter */ diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index b7f6960..2a0cd70 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -6287,7 +6287,6 @@ static void hclge_get_port_type(struct hnae3_handle *handle, static struct hnae3_ae_algo ae_algo = { .ops = &hclge_ops, - .name = HCLGE_NAME, .pdev_id_table = ae_algo_pci_tbl, }; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 1eb61c1..1638193 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1959,7 +1959,6 @@ void hclgevf_update_speed_duplex(struct hclgevf_dev *hdev, u32 speed, static struct hnae3_ae_algo ae_algovf = { .ops = &hclgevf_ops, - .name = HCLGEVF_NAME, .pdev_id_table = ae_algovf_pci_tbl, }; -- 1.9.1