From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DE922A0547; Thu, 16 Jun 2022 04:41:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03BEA42BB9; Thu, 16 Jun 2022 04:41:01 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2116.outbound.protection.outlook.com [40.107.94.116]) by mails.dpdk.org (Postfix) with ESMTP id 1235A42BB9 for ; Thu, 16 Jun 2022 04:41:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Et3FAEYgqJQ6HG7hFezCGVn4y4NSZ2rMbECNdp3au4hC/AsdEaw1/nx9L10+QHrBjmYep99M0FEvLf/Vhkwa32djoZmt1zqloAhJRH9oHeWz2I9Aw9DG5E7tSd9/BNPT7oQlsnNMl4YOTFlV2EMnLsRUPAnZH801aNwtWTI6YfEgLlF9VhwqszsFfFn8uqxx15qVtFv4srC0Q+8rN2k/nbNPDaGaW+tSJtKwJlaa7Wp9FLI1crR7P18xWXFEKrrj7lf5WX00ysZ2E3Lwsy7RGDwIol7Sp59+On1hNbtFFld+WDRZ1cDUNyE7BZwBSAXNlx4YevMnmYvxGVts14YMGQ== 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=h0XMQ/gppdgEIimBF1bLvhm5GOnKmL0wp/g835CrBL0=; b=Y38XaARNSJYrokbidd2Ydy0bERSm+5W544CKDSQrIxmIB0yWC1I9k+E3I2O9YVGduCkDroUwkHcjWr/9iWjW2UYQfGn9fBVPc7Z9FwFxvEc+dZZ1L1afaG9WINIdBwFqlTb5UaBVwhmy/9JqhLtT5ncmo3NAKVvhl3Jm01epPXK8w5dl+qCUDNVnbzX3F+FbgmPY7J9+j8u5VyzfSgx+LFLW0wDy9QcWpeYedvY59HmV/2kyLYvGA2Oi1wt2IUGC3Tt41r4hfOvM0XC6cMtz26C3RTW9IW8wehXybaYy8jb1/FX64nANdXqknndbGayDYv08tCOcawRGxx+TyUVd0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h0XMQ/gppdgEIimBF1bLvhm5GOnKmL0wp/g835CrBL0=; b=ZcCfC9ogJfKXPsMar+aD+mQbAA8ZO6bD0z5ZS+zf4HjQAFXe+emSCOjGionXekbWYdBtdljCtbmQw61tUqS8weTvoYA3Tc0H8xE6ZvVL08Zg7bg62uKMBp8Zhcc+FqvuCaFxiF3Y+k96/SSF9AQdUdBAWDWMZ6VqU8wBKiNZsHw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) by DM6PR13MB2345.namprd13.prod.outlook.com (2603:10b6:5:be::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9; Thu, 16 Jun 2022 02:40:58 +0000 Received: from DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35]) by DM6PR13MB3004.namprd13.prod.outlook.com ([fe80::ac31:a36a:cc15:cd35%7]) with mapi id 15.20.5353.011; Thu, 16 Jun 2022 02:40:58 +0000 From: Jin Liu To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Jin Liu , Chaoyong He Subject: [PATCH v2 04/15] net/nfp: remove unnecessary forward function declaration Date: Thu, 16 Jun 2022 04:39:28 +0200 Message-Id: <20220616023939.1798769-5-jin.liu@corigine.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220616023939.1798769-1-jin.liu@corigine.com> References: <20220602015304.710197-1-jin.liu@corigine.com> <20220616023939.1798769-1-jin.liu@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0087.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::20) To DM6PR13MB3004.namprd13.prod.outlook.com (2603:10b6:5:191::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a5c1ee0-7188-4fd8-66d3-08da4f41a4fa X-MS-TrafficTypeDiagnostic: DM6PR13MB2345:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7env8XMyqtFl1qlo3D9VlNoH0DhB0m3n90F/iX3fQhInBNApLXzKCorolpLGN7qKXWPPZZGwD2/Y7K/buHkeZgUkaeVcoqEgkKN4cSlnvKVDt8gg0A83bnIACg6ksHU3HfnIj6kSMW5JUCQCaI3Nvc6TRvdlQPHroIPcDU3uJltaaIIR6H+k7rZ++YriSGXc3ZLgDOjrLcHNuzPoivf2ubIxixCS9Mc1ecwgZPi6eArXdrPgZ3wrOOIuO0IlSPxgMv4jrrqKjDzFvScbWmqVEMs4mOIsEJW5zZqxp1Ky4BAz6hQKw//IZWNFqXS0tCJ9G7bGCoo8U4KkAVqoIqcOT6vC9KNXA/Vo+5GyEydvhayMK4TztkKKuprc6nhdWUOJjU9dNrV4jXF9pDOsVsofsog1wiku7VLqnB0K7zBkwWNmPAiiAPyU9wYC/ypiv8pQnemxXyEzAhUntyS+T8CCLCDLlaqo/PdXzbGi+ZqcFto3NhgRXue6KmiH5EiQKDES6wLGHtCyl05pZWbAGHYJ9yo5d8dEi0ywns1BshOBpVoF6asEAgs8drAUJ4nAo/kwhMH3eLX0EElzBKFv2pjUK3y9nCXWgIA6/loEO2GsvxwckSkxYTQXGKk1nE5MZ8OshE7RsbKLopcK+aXUs0JogQebqqT9BqSqHQF1zk3JcAzu0gIg1cy3+xvz4k8ky3xitDLhk8iQ2/+Wvo+41CKT7w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR13MB3004.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(396003)(366004)(39830400003)(136003)(6506007)(6666004)(26005)(316002)(66574015)(186003)(107886003)(6486002)(508600001)(41300700001)(2616005)(83380400001)(1076003)(36756003)(54906003)(6916009)(66556008)(8676002)(2906002)(4326008)(44832011)(38350700002)(6512007)(52116002)(5660300002)(66476007)(66946007)(86362001)(8936002)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dUJ2T3Vac2N3U0YzcmhqbVM0TG1DY2xCUUhvcFk0cldxOCtxZTlLQklNVkhy?= =?utf-8?B?YittaHdycm1zdTllL1JQMnJnVkt6TXlKZTRqZGhmR2t5SmtvZDdHWGtxZzJj?= =?utf-8?B?V3k3K0VaUUh4REx2QkNkL3VqWlNqOXQ3TlpwS05Ua2JFeEZUQXMrd3FWQVlH?= =?utf-8?B?UStNdWhsRXZVK1NqcHprcXAvY0tST1VxNWphdy9tbUxoZFl2bkhtYlRBaUV6?= =?utf-8?B?ZmFkbXlNV1doNnRad21LOEdTd08yblIzSm94OTM4Z28xMzhaTGptN1cxbXFi?= =?utf-8?B?UE45ZWhETFNpSkRrWVlvUGxEVFdUQi8zSzViTTVLY0lBUnZCclEwekRRO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Eak5NMUlVTWk0bzk2NTE3SDhQd2RpV29uTzcrTkYv?= =?utf-8?B?SHVSYVJENjJvNm9VZHVSSC9CTjdmNlJDd1E4eFlaRVFZZWVpY25PV094RUND?= =?utf-8?B?N2grZGRBNi83NlpXRjVjYnN4cGttdGJtSGdhR3FYN1FXWTlJWHdOSWc3UmZ2?= =?utf-8?B?QWJkLzBreCtDUlU3RW5YSHh2WkF3MmZvZmlFYUlpUm1GN0VraUxzUT09?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a5c1ee0-7188-4fd8-66d3-08da4f41a4fa X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3004.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2022 02:40:58.8032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GuAi5enCHJ0ICIB7rPmsyJdooFlojLGKN/nBnaSkbC7qFAYs1qvJRqlVukdoT1O7JsZyg+n1YlXE/zC2CJKK6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR13MB2345 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This commit remove some unnecessary forward function declarations. Signed-off-by: Chaoyong He Signed-off-by: Jin Liu Signed-off-by: Niklas Söderlund --- drivers/net/nfp/nfp_ethdev.c | 22 ---------------------- drivers/net/nfp/nfp_ethdev_vf.c | 12 ------------ drivers/net/nfp/nfp_rxtx.c | 21 --------------------- 3 files changed, 55 deletions(-) diff --git a/drivers/net/nfp/nfp_ethdev.c b/drivers/net/nfp/nfp_ethdev.c index eb0d92a98c..36ab31b688 100644 --- a/drivers/net/nfp/nfp_ethdev.c +++ b/drivers/net/nfp/nfp_ethdev.c @@ -38,28 +38,6 @@ #include "nfp_ctrl.h" #include "nfp_cpp_bridge.h" - -static int nfp_net_pf_read_mac(struct nfp_pf_dev *pf_dev, int port); -static int nfp_net_start(struct rte_eth_dev *dev); -static int nfp_net_stop(struct rte_eth_dev *dev); -static int nfp_net_set_link_up(struct rte_eth_dev *dev); -static int nfp_net_set_link_down(struct rte_eth_dev *dev); -static int nfp_net_close(struct rte_eth_dev *dev); -static int nfp_net_init(struct rte_eth_dev *eth_dev); -static int nfp_fw_upload(struct rte_pci_device *dev, - struct nfp_nsp *nsp, char *card); -static int nfp_fw_setup(struct rte_pci_device *dev, - struct nfp_cpp *cpp, - struct nfp_eth_table *nfp_eth_table, - struct nfp_hwinfo *hwinfo); -static int nfp_init_phyports(struct nfp_pf_dev *pf_dev); -static int nfp_pf_init(struct rte_pci_device *pci_dev); -static int nfp_pf_secondary_init(struct rte_pci_device *pci_dev); -static int nfp_pf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, - struct rte_pci_device *dev); -static int nfp_pci_uninit(struct rte_eth_dev *eth_dev); -static int eth_nfp_pci_remove(struct rte_pci_device *pci_dev); - static int nfp_net_pf_read_mac(struct nfp_pf_dev *pf_dev, int port) { diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c index 381a25c03c..8d68ccbc95 100644 --- a/drivers/net/nfp/nfp_ethdev_vf.c +++ b/drivers/net/nfp/nfp_ethdev_vf.c @@ -23,18 +23,6 @@ #include "nfp_logs.h" #include "nfp_ctrl.h" -static void nfp_netvf_read_mac(struct nfp_net_hw *hw); -static int nfp_netvf_start(struct rte_eth_dev *dev); -static int nfp_netvf_stop(struct rte_eth_dev *dev); -static int nfp_netvf_set_link_up(struct rte_eth_dev *dev); -static int nfp_netvf_set_link_down(struct rte_eth_dev *dev); -static int nfp_netvf_close(struct rte_eth_dev *dev); -static int nfp_netvf_init(struct rte_eth_dev *eth_dev); -static int nfp_vf_pci_uninit(struct rte_eth_dev *eth_dev); -static int eth_nfp_vf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, - struct rte_pci_device *pci_dev); -static int eth_nfp_vf_pci_remove(struct rte_pci_device *pci_dev); - static void nfp_netvf_read_mac(struct nfp_net_hw *hw) { diff --git a/drivers/net/nfp/nfp_rxtx.c b/drivers/net/nfp/nfp_rxtx.c index 335a90b2c9..cd7faa2c58 100644 --- a/drivers/net/nfp/nfp_rxtx.c +++ b/drivers/net/nfp/nfp_rxtx.c @@ -21,27 +21,6 @@ #include "nfp_logs.h" #include "nfp_ctrl.h" -/* Prototypes */ -static int nfp_net_rx_fill_freelist(struct nfp_net_rxq *rxq); -static inline void nfp_net_mbuf_alloc_failed(struct nfp_net_rxq *rxq); -static inline void nfp_net_set_hash(struct nfp_net_rxq *rxq, - struct nfp_net_rx_desc *rxd, - struct rte_mbuf *mbuf); -static inline void nfp_net_rx_cksum(struct nfp_net_rxq *rxq, - struct nfp_net_rx_desc *rxd, - struct rte_mbuf *mb); -static void nfp_net_rx_queue_release_mbufs(struct nfp_net_rxq *rxq); -static int nfp_net_tx_free_bufs(struct nfp_net_txq *txq); -static void nfp_net_tx_queue_release_mbufs(struct nfp_net_txq *txq); -static inline uint32_t nfp_free_tx_desc(struct nfp_net_txq *txq); -static inline uint32_t nfp_net_txq_full(struct nfp_net_txq *txq); -static inline void nfp_net_tx_tso(struct nfp_net_txq *txq, - struct nfp_net_tx_desc *txd, - struct rte_mbuf *mb); -static inline void nfp_net_tx_cksum(struct nfp_net_txq *txq, - struct nfp_net_tx_desc *txd, - struct rte_mbuf *mb); - static int nfp_net_rx_fill_freelist(struct nfp_net_rxq *rxq) { -- 2.27.0