From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 5979FA034F;
	Tue,  6 Apr 2021 12:28:35 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 3CDBC141054;
	Tue,  6 Apr 2021 12:28:27 +0200 (CEST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com
 [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 43476140F24
 for <dev@dpdk.org>; Tue,  6 Apr 2021 12:28:23 +0200 (CEST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id DBF395C0138;
 Tue,  6 Apr 2021 06:28:22 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Tue, 06 Apr 2021 06:28:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=+O1JfNAdUhX+t
 RDZPoMFjPeLZiBCX+pAZtGgodBapbU=; b=enF4F1MOcG9blMzc9m8Zs+3UWqJxy
 km9OQSTDO+LmQhDL/9XR9zgoAPHhbflSCiHq7cnuCwsY/w3MGjLc8GDXMc4MIfR1
 CWEj4xMjFmy1CAXUrk5PEUWKRbUxL7cJcpqPv87ru6ypNVvLjtHvJ5aq7pp+t2K1
 PLZuMabYGULKDfaJ/z/LOYEB9+31HRQ0wRU+diV+0E3Bf0PNqfmOACsvjGrX6/6y
 THF3GVKle5VV6IbQ1f5WLwP3Papp9ZuhtDRqjxm/866sF1tigFOxU8ntloimapd1
 /cPFq1kJhfUUuDBt+G6qaRks6v95av2W5/eFhSV8gpRRzELDYA8RmdD5A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm2; bh=+O1JfNAdUhX+tRDZPoMFjPeLZiBCX+pAZtGgodBapbU=; b=ub4+8jKf
 tVWKZsNdoZcCP7LbWxUUsFGMHGitvhbYRY7mu6jbdY4lKwy3G9u7+FyzyiaAAKQc
 kUgWn6xy3Sk3oR+LnPdWaxJw4ITc53u7yfgak7ukpEBore9FKzOd7n+7sYxDFbcW
 t1PqXPiMg7wwuGsyjgwBfjLqTlu9XkWzMfZGBF46oaYGeg7lMIKx4RCNphEBzCM1
 wkjUMQD1AO/DrBWFwxddcjcUbXqiK8Kss2E0snkKT3GjKI6Mp6yi5NZt0Uhs+Oot
 h/ZNjaBHfisxTMQy5AYeXeqdk9KGLCdbYGyaGic3PLcVkhP8ysN1tRlrEaujOcKg
 +jPtbDGLK7/1jA==
X-ME-Sender: <xms:xjdsYI7Dtn7dfl8XQ_F2_deGTzyhdwB-LPXE8ZcNJXRjMbjQSVcSEA>
 <xme:xjdsYAy-l62FvB8t25SE8EXCi4CiSsDj2QmnuGK0n5F3kTCBTbS8ObJgQjS8WEVJ1
 V1tEBHMWkbEPuGW1g>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejgedgvdelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg
 uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf
 hiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl
 ohhnrdhnvght
X-ME-Proxy: <xmx:xjdsYPxFfXzC8hgyyeG6YxA_S3saMMVliCd2WETZvORkMIP9bU5A7g>
 <xmx:xjdsYIxeKCB3xYZhPW8dGG-eNZcRbIp8-TpdjGMNyqBdI9OQCQmBVg>
 <xmx:xjdsYJbGR7xTYUFf-xGX9UpADlr7qLrmSmxDhVQXsPOierwXPv8VCg>
 <xmx:xjdsYGtDwowlViAa_BOWzvxEstB6-PoOZTrd2P54JjsvQnVeKoDSug>
Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 646E5240054;
 Tue,  6 Apr 2021 06:28:22 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: Xueming Li <xuemingl@nvidia.com>,
 David Marchand <david.marchand@redhat.com>
Date: Tue,  6 Apr 2021 12:28:16 +0200
Message-Id: <20210406102816.1689871-3-thomas@monjalon.net>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20210406102816.1689871-1-thomas@monjalon.net>
References: <20210331223423.2089467-1-thomas@monjalon.net>
 <20210406102816.1689871-1-thomas@monjalon.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v3 2/2] bus/pci: rename probe/remove operation
 types
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

The names of the prototypes pci_probe_t and pci_remove_t
are missing a prefix rte_.
These function types are simply renamed.

No compatibility break is expected for the applications
because it is considered as an internal name in the driver interface.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
---
 drivers/bus/pci/rte_bus_pci.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/bus/pci/rte_bus_pci.h b/drivers/bus/pci/rte_bus_pci.h
index 3a092bc6d5..64886b4731 100644
--- a/drivers/bus/pci/rte_bus_pci.h
+++ b/drivers/bus/pci/rte_bus_pci.h
@@ -112,12 +112,12 @@ struct rte_pci_device {
 /**
  * Initialisation function for the driver called during PCI probing.
  */
-typedef int (pci_probe_t)(struct rte_pci_driver *, struct rte_pci_device *);
+typedef int (rte_pci_probe_t)(struct rte_pci_driver *, struct rte_pci_device *);
 
 /**
  * Uninitialisation function for the driver called during hotplugging.
  */
-typedef int (pci_remove_t)(struct rte_pci_device *);
+typedef int (rte_pci_remove_t)(struct rte_pci_device *);
 
 /**
  * Driver-specific DMA mapping. After a successful call the device
@@ -164,8 +164,8 @@ struct rte_pci_driver {
 	TAILQ_ENTRY(rte_pci_driver) next;  /**< Next in list. */
 	struct rte_driver driver;          /**< Inherit core driver. */
 	struct rte_pci_bus *bus;           /**< PCI bus reference. */
-	pci_probe_t *probe;                /**< Device Probe function. */
-	pci_remove_t *remove;              /**< Device Remove function. */
+	rte_pci_probe_t *probe;            /**< Device probe function. */
+	rte_pci_remove_t *remove;          /**< Device remove function. */
 	pci_dma_map_t *dma_map;		   /**< device dma map function. */
 	pci_dma_unmap_t *dma_unmap;	   /**< device dma unmap function. */
 	const struct rte_pci_id *id_table; /**< ID table, NULL terminated. */
-- 
2.31.1