From patchwork Thu Jul 19 14:47:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 142353 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1823568ljj; Thu, 19 Jul 2018 07:48:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcLe30dFk2rodZJ+uyu32FAZ0CuLWdN/xbprSPteZzDXnTHnmmysxNmxjNq8mAoD+hABbop X-Received: by 2002:a62:c98e:: with SMTP id l14-v6mr9809988pfk.10.1532011732823; Thu, 19 Jul 2018 07:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011732; cv=none; d=google.com; s=arc-20160816; b=DB0MQAj2jW22RVV3UAZOPKUULNqXZ8L9rR16SBXwZT1N9dQ6mD/ZEwQ2zTv0ywDkMy f3bV5UQ1TDFkoSUaF1JNEqyDKrR9A8/RQU2adnviuwZDU/ZMt4K98msoY1RwKaOR04G6 FrTbPcSZg3YQN8G+hUX7+0m9SZsyXoPkfMzjtL6RbYJm5wxdq/n66/ti3CJuSvBUVXOH eGOaBgQDXW28JfhRcuH63gYZ4C76jtEBZzKhgpaNFIH93VZZxr7+uqYpaWQFXKAFJEBv DNGlrKxvCUpl71o4U7LuLk5mWfphB4iNYgh7bqIaHgjwQAVnAWB3nQy6mhGVskiCuSyX kYbw== 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 n21-v6si6045763pgk.307.2018.07.19.07.48.52; Thu, 19 Jul 2018 07:48:52 -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 S1731981AbeGSPbv (ORCPT + 31 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 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(-) -- 2.7.4 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 */