[v11,6/9] lib/pmu: use build system defined RTE_LIB_PMU macro

Message ID 20251024054830.933910-7-tduszynski@marvell.com (mailing list archive)
State Accepted
Delegated to: David Marchand
Headers
Series lib/pmu: cleanups and trace integration |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tomasz Duszynski Oct. 24, 2025, 5:48 a.m. UTC
RTE_LIB_PMU is defined by build system automatically if DPDK is build
for Linux. Otherwise it's missing.

That said all cases where conditional compilation is required
can be handled without introducing other macros.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
---
 lib/pmu/rte_pmu.h | 3 ---
 1 file changed, 3 deletions(-)
  

Patch

diff --git a/lib/pmu/rte_pmu.h b/lib/pmu/rte_pmu.h
index fcf125a908..2e3678d966 100644
--- a/lib/pmu/rte_pmu.h
+++ b/lib/pmu/rte_pmu.h
@@ -34,13 +34,10 @@ 
 #include <rte_debug.h>
 #include <rte_lcore.h>
 
-#define RTE_PMU_SUPPORTED
 #if defined(RTE_ARCH_ARM64)
 #include "rte_pmu_pmc_arm64.h"
 #elif defined(RTE_ARCH_X86_64)
 #include "rte_pmu_pmc_x86_64.h"
-#else
-#undef RTE_PMU_SUPPORTED
 #endif
 
 #ifdef __cplusplus