Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1301039ybk; Thu, 14 May 2020 05:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ9zCfE5O3Y0zQXFZqAq19pMqH0M7CfuNjR8odRN5mxT1EdtkMw8G4m2N7ntc7B2C/vnBu X-Received: by 2002:a17:906:c113:: with SMTP id do19mr3747380ejc.286.1589460305942; Thu, 14 May 2020 05:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589460305; cv=none; d=google.com; s=arc-20160816; b=igClElq2x7gYUZVUCCvqh0sw0LEC7t+G2nfBrV4SQ2KiutdHJ44HnQEU7hcAuT2rBd xRP6JAbDlt1A2dR4AogAqJjN1WBUSKMzZk3n4Kz9BR//r6V3jkbR/8HhulUKP4EzyNpq boaiGt5PC9SOXe6gtP1ixas3tDx4zAbkdrdeSxaIuQb9s9+99zZenDAdzrow+myKRMvk r4Fc15H6NjMatOXby/CmyWKIxQlYSF5XXUC+DRmk/QOqUmJ/U1ho8tusDDWzOVg32cxM 7JKKoQLsoF2xFsJtPxlGjKdsx+8fnUic+XbW1vHzA/0mmXe/KZad/XbPmw6u6DQgxDi/ /rkQ== 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=ioKy//fSL+dAcrnu8MoD6WSMlP5hMaNdtTLszKV9YYA=; b=ko8O1/iSjZnYHemdIs6TnO/dgdNqBLffQnV+3BsntA0OxvuwLIKvkjOWIKipizetuL hHWEACMytRBza8+vFigyC7vtCXDaMSi5h6AklnY6olo/vAGKtZ7Fa4UuKnszKRBXEEs+ TPaGf2OBe8MmY50UeNQFOyAyGeOwkh1lOT//rFNSSkK8ZDNc5jGgsaH/pJSsAexEfoeN F103p35vFGh4keqi7jWQ/TGI7htg+9X9cn63KL0qIZjAj341+0o6zlKYTlQRX0YZwMWl WGaG2Iw26v7bxvcrV/yC8HQ6Z53NIuwuR1g6ILqN7uk/L+LBS9vL9dsMejJH7gX9Pwqp UlUA== 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 c2si1709008ejd.263.2020.05.14.05.44.43; Thu, 14 May 2020 05:45:05 -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 S1726763AbgENMnB (ORCPT + 99 others); Thu, 14 May 2020 08:43:01 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:59338 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726037AbgENMnA (ORCPT ); Thu, 14 May 2020 08:43:00 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1F33EAFF5921EC6753FB; Thu, 14 May 2020 20:42:58 +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; Thu, 14 May 2020 20:42:50 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 4/5] net: hns3: remove some unused macros Date: Thu, 14 May 2020 20:41:25 +0800 Message-ID: <1589460086-61130-5-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589460086-61130-1-git-send-email-tanhuazhong@huawei.com> References: <1589460086-61130-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 There are some macros defined in hns3_enet.h, but not used in anywhere. Reported-by: Yonglong Liu Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index 240ba06..60f82ad 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -46,23 +46,6 @@ enum hns3_nic_state { #define HNS3_RING_CFG_VF_NUM_REG 0x00080 #define HNS3_RING_ASID_REG 0x0008C #define HNS3_RING_EN_REG 0x00090 -#define HNS3_RING_T0_BE_RST 0x00094 -#define HNS3_RING_COULD_BE_RST 0x00098 -#define HNS3_RING_WRR_WEIGHT_REG 0x0009c - -#define HNS3_RING_INTMSK_RXWL_REG 0x000A0 -#define HNS3_RING_INTSTS_RX_RING_REG 0x000A4 -#define HNS3_RX_RING_INT_STS_REG 0x000A8 -#define HNS3_RING_INTMSK_TXWL_REG 0x000AC -#define HNS3_RING_INTSTS_TX_RING_REG 0x000B0 -#define HNS3_TX_RING_INT_STS_REG 0x000B4 -#define HNS3_RING_INTMSK_RX_OVERTIME_REG 0x000B8 -#define HNS3_RING_INTSTS_RX_OVERTIME_REG 0x000BC -#define HNS3_RING_INTMSK_TX_OVERTIME_REG 0x000C4 -#define HNS3_RING_INTSTS_TX_OVERTIME_REG 0x000C8 - -#define HNS3_RING_MB_CTRL_REG 0x00100 -#define HNS3_RING_MB_DATA_BASE_REG 0x00200 #define HNS3_TX_REG_OFFSET 0x40 -- 2.7.4