Thread (13 messages) 13 messages, 5 authors, 2018-08-17

Re: [PATCH 1/2] PCI/DPC: Add 'nodpc' parameter

From: Keith Busch <hidden>
Date: 2018-08-15 23:02:47
Also in: linux-pci, lkml

On Wed, Aug 15, 2018 at 03:26:39PM -0600, Jon Derrick wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -536,4 +536,10 @@ static inline void pci_aer_clear_fatal_status(struct pci_dev *dev) { }
 static inline void pci_aer_clear_device_status(struct pci_dev *dev) { }
 #endif
 
+#ifdef CONFIG_PCIE_DPC
+void pci_no_dpc(void);
+#else
+static inline void pci_no_dpc(void) { }
+#endif
<snip>
quoted hunk ↗ jump to hunk
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1473,6 +1473,12 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d,
 static inline bool pci_aer_available(void) { return false; }
 #endif
 
+#ifdef CONFIG_PCIE_DPC
+bool pci_dpc_available(void);
+#else
+static inline bool pci_dpc_available(void) { return false; }
+#endif
Seems like these two sections belong together. Otherwise, looks fine.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help