[Skiboot] [PATCH 1/4] core/pci-dt-slots: Remove duplicate PCIDBG() definition

Jordan Niethe jniethe5 at gmail.com
Fri Aug 9 14:12:17 AEST 2019


PCIDBG() is already defined in pci.h, which is included by
pci-dt-slot.c. It should not be defined again so remove this definition.

Signed-off-by: Jordan Niethe <jniethe5 at gmail.com>
---
 core/pci-dt-slot.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/core/pci-dt-slot.c b/core/pci-dt-slot.c
index 5c44955bdb81..f0d22c3738e7 100644
--- a/core/pci-dt-slot.c
+++ b/core/pci-dt-slot.c
@@ -20,12 +20,6 @@
 #undef pr_fmt
 #define pr_fmt(fmt) "DT-SLOT: " fmt
 
-#define PCIDBG(_p, _bdfn, fmt, a...) \
-        prlog(PR_DEBUG, "PHB#%04x:%02x:%02x.%x " fmt,   \
-              (_p)->opal_id,                            \
-              ((_bdfn) >> 8) & 0xff,                    \
-              ((_bdfn) >> 3) & 0x1f, (_bdfn) & 0x7, ## a)
-
 struct dt_node *dt_slots;
 
 static struct dt_node *map_phb_to_slot(struct phb *phb)
-- 
2.20.1



More information about the Skiboot mailing list