From 4422fd3200bbcdda4ab27afb39d5d410391bbf2a Mon Sep 17 00:00:00 2001 From: David Christensen Date: Mon, 16 Mar 2020 13:47:49 -0700 Subject: [PATCH] pci: fix build on ppc [ upstream commit 61669ecb921fff821db11d81557fa0449a7eb79c ] The include file rte_debug.h is pulled into x86 builds through the following callchain: lib/librte_eal/common/include/generic/rte_cycles.h:17, lib/librte_eal/common/include/arch/x86/rte_cycles.h:13, lib/librte_eal/common/include/arch/x86/rte_spinlock.h:18, lib/librte_eal/common/include/arch/x86/rte_rwlock.h:13, The PPC specific version of the same callchain does not include rte_debug.h. Add rte_debug.h back into the C files that require it. Fixes: 0dcba5256287 ("pci: remove unneeded includes in public header file") Signed-off-by: David Christensen Tested-by: David Wilder Acked-by: David Marchand --- drivers/bus/ifpga/ifpga_bus.c | 1 + lib/librte_pci/rte_pci.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c index 55d3abf9fe..1fddde60a5 100644 --- a/drivers/bus/ifpga/ifpga_bus.c +++ b/drivers/bus/ifpga/ifpga_bus.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "rte_rawdev.h" #include "rte_rawdev_pmd.h" diff --git a/lib/librte_pci/rte_pci.c b/lib/librte_pci/rte_pci.c index f400178bb6..a13aed9856 100644 --- a/lib/librte_pci/rte_pci.c +++ b/lib/librte_pci/rte_pci.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "rte_pci.h"