[v2] common/cnxk: rename deprecated constant

Message ID 20210503102937.274-1-pbhagavatula@marvell.com (mailing list archive)
State Superseded, archived
Delegated to: Jerin Jacob
Headers
Series [v2] common/cnxk: rename deprecated constant |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/github-robot success github build: passed
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS

Commit Message

Pavan Nikhilesh Bhagavatula May 3, 2021, 10:29 a.m. UTC
  From: Pavan Nikhilesh <pbhagavatula@marvell.com>

The PCI_ANY_ID constant is deprecated and renamed as RTE_PCI_ANY_ID.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 v2 Changes:
 - s/depricated/deprecated.

 drivers/common/cnxk/roc_platform.h | 24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

--
2.17.1
  

Patch

diff --git a/drivers/common/cnxk/roc_platform.h b/drivers/common/cnxk/roc_platform.h
index 97600e56f..29ab71240 100644
--- a/drivers/common/cnxk/roc_platform.h
+++ b/drivers/common/cnxk/roc_platform.h
@@ -165,22 +165,18 @@  extern int cnxk_logtype_tm;
 #define plt_tm_dbg(fmt, ...)	plt_dbg(tm, fmt, ##__VA_ARGS__)

 #ifdef __cplusplus
-#define CNXK_PCI_ID(subsystem_dev, dev)				\
-	{							\
-		RTE_CLASS_ANY_ID,				\
-		PCI_VENDOR_ID_CAVIUM,				\
-		(dev),						\
-		PCI_ANY_ID,					\
-		(subsystem_dev),				\
+#define CNXK_PCI_ID(subsystem_dev, dev)                                        \
+	{                                                                      \
+		RTE_CLASS_ANY_ID, PCI_VENDOR_ID_CAVIUM, (dev), RTE_PCI_ANY_ID, \
+			(subsystem_dev),                                       \
 	}
 #else
-#define CNXK_PCI_ID(subsystem_dev, dev)				\
-	{							\
-		.class_id = RTE_CLASS_ANY_ID,			\
-		.vendor_id = PCI_VENDOR_ID_CAVIUM,		\
-		.device_id = (dev),				\
-		.subsystem_vendor_id = PCI_ANY_ID,		\
-		.subsystem_device_id = (subsystem_dev),		\
+#define CNXK_PCI_ID(subsystem_dev, dev)                                        \
+	{                                                                      \
+		.class_id = RTE_CLASS_ANY_ID,                                  \
+		.vendor_id = PCI_VENDOR_ID_CAVIUM, .device_id = (dev),         \
+		.subsystem_vendor_id = RTE_PCI_ANY_ID,                         \
+		.subsystem_device_id = (subsystem_dev),                        \
 	}
 #endif