@@ -220,8 +220,13 @@ enum rte_bus_scan_mode {
};
/* Backwards compatibility will be deprecated */
-#define RTE_BUS_SCAN_WHITELIST RTE_BUS_SCAN_ALLOWLIST
-#define RTE_BUS_SCAN_BLACKLIST RTE_BUS_SCAN_BLOCKLIST
+#define RTE_BUS_SCAN_WHITELIST \
+ _Pragma("GCC warning \"'RTE_BUS_SCAN_WHITELIST' macro is deprecated.\"") \
+ RTE_BUS_SCAN_ALLOWLIST
+
+#define RTE_BUS_SCAN_BLACKLIST \
+ _Pragma("GCC warning \"'RTE_BUS_SCAN_BLACKLIST' macro is deprecated.\"") \
+ RTE_BUS_SCAN_BLOCKLIST
/**
* A structure used to configure bus operations.
@@ -74,9 +74,13 @@ enum rte_dev_policy {
RTE_DEV_BLOCKED,
};
-/* Backwards compatiablity will be deprecated */
-#define RTE_DEV_WHITELISTED RTE_DEV_ALLOWED
-#define RTE_DEV_BLACKLISTED RTE_DEV_BLOCKED
+#define RTE_DEV_WHITELISTED \
+ _Pragma("GCC warning \"'RTE_DEV_WHITELISTED' macro is deprecated.\"") \
+ RTE_DEV_ALLOWED
+
+#define RTE_DEV_BLACKLISTED \
+ _Pragma("GCC warning \"'RTE_DEV_BLACKLISTED' macro is deprecated.\"") \
+ RTE_DEV_BLOCKED
/**
* A generic memory resource representation.
@@ -35,8 +35,13 @@ enum rte_devtype {
};
/* Backwards compatibility will be removed later */
-#define RTE_DEVTYPE_WHITELISTED_PCI RTE_DEVTYPE_ALLOWED
-#define RTE_DEVTYPE_BLACKLISTED_PCI RTE_DEVTYPE_BLOCKED
+#define RTE_DEVTYPE_WHITELISTED_PCI \
+ _Pragma("GCC warning \"'RTE_DEVTYPE_WHITELISTED_PCI' macro is deprecated.\"") \
+ RTE_DEVTYPE_ALLOWED
+
+#define RTE_DEVTYPE_BLACKLISTED_PCI \
+ _Pragma("GCC warning \"'RTE_DEVTYPE_BLACKLISTED_PCI' macro is deprecated.\"") \
+ RTE_DEVTYPE_BLOCKED
/**
* Structure that stores a device given by the user with its arguments