Skip to contentSkip to conversation

PCI/IOV: export pci_vf_drivers_autoprobe() symbol

PATCH In review Yang Wang 3 participants 3 messages Aug 5, 2022 – Aug 16, 2022 PCI

lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 PCI/IOV: export pci_vf_drivers_autoprobe() symbol

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().

---
 drivers/pci/iov.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/iov.c +2 -0
index 952217572113..4d992424959a 100644
@@ -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
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Yang Wang

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().

But this does not actually seem to be used by any potentially modular driver.

#2 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Yang Wang

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().

But this does not actually seem to be used by any potentially modular driver.

In addition, It is layer violation to control that flag from the driver.

Thanks