[PATCH] PCI/IOV: export pci_vf_drivers_autoprobe() symbol

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

 



make pci_vf_drivers_autoprobe() as export symbol.

the external module have no way to control vf autoprobe flag
before pf driver call pci_enable_sriov().

Signed-off-by: Yang Wang <KevinYang.Wang@xxxxxxx>
---
 drivers/pci/iov.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 952217572113..4d992424959a 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -1033,6 +1033,8 @@ void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool auto_probe)
 	if (dev->is_physfn)
 		dev->sriov->drivers_autoprobe = auto_probe;
 }
+EXPORT_SYMBOL_GPL(pci_vf_drivers_autoprobe);
+
 
 /**
  * pci_iov_bus_range - find bus range used by Virtual Function
-- 
2.25.1




[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