From patchwork Tue Jul 18 09:09:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13316910 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1681FF9EF for ; Tue, 18 Jul 2023 09:16:22 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2056.outbound.protection.outlook.com [40.107.20.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B90A170C; Tue, 18 Jul 2023 02:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBr/io35PfK7YZQ6f61HbtOiYTt8Zp5W91jvDpNtZcT8Qzy8OYA1D0bLuh4CQrdFRBwrPCykhopbR4zhoFV9MzuV9vC2tYFbVEhTPlzt593ZWEtqLjfx8ovp2/bnvTX7RquVOIcTXE1vFlnJJHAWlXGf4mmFlETktNpCL5ZktQiVLDMpZ33eM0f7FQGSRYIFPdyO2WwaLlGuwIELvA13RrkBxO+tTh5F9r7ttDRbU7oMQhdkjYGKcXJrvMSP2E98yqb5H1Ik+/qnI8ZvYeTkSU/QekseD1W7LVelYca+UKhWnJVG3GHKaX+ld02k3XgrtndE2taN3Biua7tfdIrbYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FdjPvDmrrrkh8MKW8ljC8+6JLWdRtzFzvR8Gt8Tluho=; b=KUrQ6r3qC4YiJze/1+f25GZ8nR5XEm7K8dkYxPKaXKKdmPtqA4PEiY5/hhlf3UZq/+on5l0UfSAVTBgIvYVRKNsWMVPKP/K4wIackUYuZD9AOypb6KnxR7NZNPGX48qwtsmd05lIXmLOHSMrr5mK8qUcr9WkgNil1CVZbyoRwLNQH9vf1RyKi5Bbax5gnk2p3ulwxgshY1VNn1++m5pxAoJU0fyk4SEbJpmjNjpLVEK5ODg+V5xa4ERrDcJW85EbMCdZVt5mUqHp93hvH/s938jMVfPzaeI60aizl5RDVNVuOZiBnZ3e0PGy02dwLac6t6Lho1cBmJCd8HIPBOPUKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FdjPvDmrrrkh8MKW8ljC8+6JLWdRtzFzvR8Gt8Tluho=; b=pCFLduPdnL4jS6ffHOuh9Y3LJBfSoKotyX9CLj0hZ3w9A5expV0DAQPIp7j4UcyFomRQAg5W2OFl+miX2D7Ngf4Vf0KTV4sA6if0/2urni9JnZbyBp8PRVONXekBnaiabQdPNJZAWigipvtdYP9PlNMGvPxPZz+/i0DBirSlxxo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM5PR04MB3139.eurprd04.prod.outlook.com (2603:10a6:206:8::20) by AS8PR04MB7832.eurprd04.prod.outlook.com (2603:10a6:20b:2af::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.33; Tue, 18 Jul 2023 09:16:16 +0000 Received: from AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e]) by AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e%4]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 09:16:16 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, xiaoning.wang@nxp.com, shenwei.wang@nxp.com, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH net-next 3/3] net: fec: remove unused members from struct fec_enet_private Date: Tue, 18 Jul 2023 17:09:28 +0800 Message-Id: <20230718090928.2654347-4-wei.fang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230718090928.2654347-1-wei.fang@nxp.com> References: <20230718090928.2654347-1-wei.fang@nxp.com> X-ClientProxiedBy: SI2PR01CA0034.apcprd01.prod.exchangelabs.com (2603:1096:4:192::9) To AM5PR04MB3139.eurprd04.prod.outlook.com (2603:10a6:206:8::20) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM5PR04MB3139:EE_|AS8PR04MB7832:EE_ X-MS-Office365-Filtering-Correlation-Id: b74448e0-e995-46f2-947d-08db876fa3c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rqQv/CxWRAdPaBzv7I0DkxWfaGvwVTyrJgD9gfOAduYkfRWYUdyoFuJhv93FdCECQCKAri0jDlLvw6QM4zHm4GHcBSvmOkX/7Qk1KxxGxMJdqESjZZVYRBek43q696X6EpzmnhYUMiRcSOfhTUnOgE/p+AAwrgnE7HG45xNpi103JCQumhf3OMrYL850F4yKdISJPQ6vktYzj/2Bx8dj3HrYOnryJJBRCwsFY8Bl72RCF5cYfCWNqBZBXmvwInmT45p5eKkufeJlVBX4k1NHHaTqBLysj0j5eGXqbadeO97yyY9e1VUfb1iiNP/2E936ZGF41/FAvf5e06nDp1rUeCBSSjOIEd3jlZPXxsHXZcUm7AX21JMX7Gq5KOurEnJq4m35lvQFJTVUspZ4dqxI2NbOMYTu2pFgrUj8/9bo0TS9ET0vuq17GklNoTpNs+fXzO/G54TbvVafmpEuh3yydvajduqltrUiI3bpzP1EbiEHf4sLP9HQjOEggUwYsD8y+V8e3oM3g5ngTmu3PT6SvwigRUlq0CjpvhDAi3CH+oER6HKotDMuSZ3Ge6y93Vg/m2PruuY/ePCJmhlkv5bRpOQ5fquX8njfnw7e3U8jJystDmU8bhhIiDhFBnJ8Zatj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM5PR04MB3139.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(346002)(376002)(396003)(39860400002)(451199021)(66556008)(83380400001)(2616005)(41300700001)(5660300002)(36756003)(86362001)(44832011)(8676002)(8936002)(38350700002)(38100700002)(6666004)(6512007)(316002)(52116002)(6486002)(66476007)(66946007)(4326008)(478600001)(2906002)(186003)(6506007)(1076003)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nXJPgUiIJFgWWFMViML0brRE/9YmomNtwzdeckm0yISEUlTpRFLb9rEjgqXFgO5wMAq4uscon6tesYO63lTLWINN5p3jj37AXGsD4UBegR90jU7yprla+1FZDehwwT/euhh5Ipp4L4/urdlLLCY632uJAsWm6tMLtu7Br+roJ2F5UAtofCHvQI+ZzDbY8/277pvC6Ge+o048zwaaTd1RFMP2ONGr7L046pq0Lb670/xoNszyNsJ2BE1Lw9iAsB8t4iZeEHsGr6+a1+X3DEKy7igBwZW1a0caWwrpszkzndMJYGaDr+1trhBmM+5zn2VZ6bnHDD41F87e5B1qVz7sM98LzSdbUod7Gcwt9AHbYnYTLFUju5r+B+vN9hgFEAj2JZ8uSZmoZmt20Bc462o2u5/syjudx4KJDV1dNLZq2dSK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EtZmfC4Vs3AfvkmucVwZysCKa3IHneF7kDj1ZteXIlPqzH5nlJI9NnvxGgOxc5u4Iu2HH51K5sglbnUTgB57P X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b74448e0-e995-46f2-947d-08db876fa3c1 X-MS-Exchange-CrossTenant-AuthSource: AM5PR04MB3139.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 09:16:16.4856 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l7hWWCM9CCUGeEpXMI942ptTNy3Q9ecK2ji6K6pbxTin3cx86+BEOrT+rcTuvJBkJGRn13SkYx48xXrMzW3Bkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7832 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org Three members of struct fec_enet_private have not been used since they were first introduced into the FEC driver (commit 6605b730c061 ("FEC: Add time stamping code and a PTP hardware clock")). Namely, last_overflow_check, rx_hwtstamp_filter and base_incval. These unused members make the struct fec_enet_private a bit messy and might confuse the readers. There is no reason to keep them in the FEC driver any longer. Signed-off-by: Wei Fang --- drivers/net/ethernet/freescale/fec.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 90de14975837..f35445bddc7a 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -652,12 +652,9 @@ struct fec_enet_private { struct ptp_clock *ptp_clock; struct ptp_clock_info ptp_caps; - unsigned long last_overflow_check; spinlock_t tmreg_lock; struct cyclecounter cc; struct timecounter tc; - int rx_hwtstamp_filter; - u32 base_incval; u32 cycle_speed; int hwts_rx_en; int hwts_tx_en;