Skip to content

Commit

Permalink
pci: fix build on ppc
Browse files Browse the repository at this point in the history
[ upstream commit 61669ec ]

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: 0dcba52 ("pci: remove unneeded includes in public header file")

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Tested-by: David Wilder <dwilder@us.ibm.com>
Acked-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
drchristensen authored and kevintraynor committed May 27, 2020
1 parent a65c71f commit 4422fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bus/ifpga/ifpga_bus.c
Expand Up @@ -24,6 +24,7 @@
#include <rte_kvargs.h>
#include <rte_alarm.h>
#include <rte_string_fns.h>
#include <rte_debug.h>

#include "rte_rawdev.h"
#include "rte_rawdev_pmd.h"
Expand Down
1 change: 1 addition & 0 deletions lib/librte_pci/rte_pci.c
Expand Up @@ -20,6 +20,7 @@
#include <rte_eal.h>
#include <rte_string_fns.h>
#include <rte_common.h>
#include <rte_debug.h>

#include "rte_pci.h"

Expand Down

0 comments on commit 4422fd3

Please sign in to comment.