Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1783472imm; Thu, 19 Jul 2018 07:50:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcEIH54hEYnr/Dusie/Y1m9zAv36Sb/knAFtpbOXJn6bHt1JlcYUf0ShLZMy0YLaKNiAmWA X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr10460624pla.125.1532011806476; Thu, 19 Jul 2018 07:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011806; cv=none; d=google.com; s=arc-20160816; b=K3cGhToDD6Rv9pyXzjWlbkx+T2pZxVpXK7ZbZf7htii9452ANhpa080/anxDhQl8rS Wgnae32KOR0HB1kpiT1jDdU9lpS65jn3Po6YBlVH0MWzzKZiYghrkJ5U00SxJO6xkWyj e1VTcUG44y7/b549eDRgiEp/dNY7lC3iHIxrOJr4r0d4vCsrg6GzRC+/vwYqqOEwwChC 4DrjY1lWMe61mETQVc6VcTbfy7AAbPSPVhAIkTaCiebFgzwJG5SXgNa+Dksn3+3ZpLci xvheEYsRAQrd7ANmvIarxUVZ0FqhZSfd4HRNgA3AxJS2000sRIAR/ZiKQ7sDhkM1zIbx WlGQ== 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=2R/WYbyE1dsaVJU47yoI4ipBDvBlSTLybDz7BhunFSw=; b=lbUy5D9sm6S/ql1VWqeu6SbZ3RS2XybAw5SqvyL0QuzeIOc5uQdVMIaAqd4eR+rQUd kRGsjo70mgPdyt4QJo/zZErpzXfjibuqRKtW9kWF4CAh8YzZBr0XbGBkDv/quSw9tS5I gj+XAHBZ9BUswpyFfLWG5RoZuTHVWGbbHLnA2wvp9VkXuUcJuqeFLebwgah4dJ8esAVR 4uQea8jFy6YWUw0nEsC42oqoaoJa827xOclazi3nAMG8IHHyTirLXGf4SBj15Oy4z2vt XyKPPc9jGTghmSMVwwBjbEJD8iokQfP1kdeaXcI8z5xHaKqGxVc2v0UmxI6/FVOYStey wYgA== 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 6-v6si6111556pgw.680.2018.07.19.07.49.51; Thu, 19 Jul 2018 07:50:06 -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 S1731977AbeGSPbv (ORCPT + 99 others); Thu, 19 Jul 2018 11:31:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54317 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731908AbeGSPbu (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 6F6ABDD007A41; 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:09 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 8/9] net: hns3: Remove unused struct member and definition Date: Thu, 19 Jul 2018 15:47:05 +0100 Message-ID: <20180719144706.644-9-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 struct hclge_desc_cb and hclge_desc_cb are never used in anywhere. This patch removes them. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 7 ------- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 7 ------- 2 files changed, 14 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index 54e199d..66a534a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -27,16 +27,9 @@ struct hclge_desc { __le32 data[6]; }; -struct hclge_desc_cb { - dma_addr_t dma; - void *va; - u32 length; -}; - struct hclge_cmq_ring { dma_addr_t desc_dma_addr; struct hclge_desc *desc; - struct hclge_desc_cb *desc_cb; struct hclge_dev *dev; u32 head; u32 tail; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h index a1ed6df..7d4845e 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h @@ -140,12 +140,6 @@ enum hclge_evt_cause { }; #define HCLGE_MPF_ENBALE 1 -struct hclge_caps { - u16 num_tqp; - u16 num_buffer_cell; - u32 flag; - u16 vmdq; -}; enum HCLGE_MAC_SPEED { HCLGE_MAC_SPEED_10M = 10, /* 10 Mbps */ @@ -191,7 +185,6 @@ struct hclge_hw { struct hclge_mac mac; int num_vec; struct hclge_cmq cmq; - struct hclge_caps caps; }; /* TQP stats */ -- 2.7.4