[PATCH v5 2/5] PCI: Export `pcie_cap_has_lnkctl2'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Export `pcie_cap_has_lnkctl2' for external use.

Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxx>
---
New change in v5.
---
 drivers/pci/access.c |    2 +-
 drivers/pci/pci.h    |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

linux-pcie-cap-has-lnkctl2-export.diff
Index: linux-macro/drivers/pci/access.c
===================================================================
--- linux-macro.orig/drivers/pci/access.c
+++ linux-macro/drivers/pci/access.c
@@ -350,7 +350,7 @@ bool pcie_cap_has_lnkctl(const struct pc
 	       type == PCI_EXP_TYPE_PCIE_BRIDGE;
 }
 
-static inline bool pcie_cap_has_lnkctl2(const struct pci_dev *dev)
+bool pcie_cap_has_lnkctl2(const struct pci_dev *dev)
 {
 	return pcie_cap_has_lnkctl(dev) && pcie_cap_version(dev) > 1;
 }
Index: linux-macro/drivers/pci/pci.h
===================================================================
--- linux-macro.orig/drivers/pci/pci.h
+++ linux-macro/drivers/pci/pci.h
@@ -15,6 +15,7 @@ extern const unsigned char pcie_link_spe
 extern bool pci_early_dump;
 
 bool pcie_cap_has_lnkctl(const struct pci_dev *dev);
+bool pcie_cap_has_lnkctl2(const struct pci_dev *dev);
 bool pcie_cap_has_rtctl(const struct pci_dev *dev);
 
 /* Functions internal to the PCI core code */



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux