PCI/IOV: export pci_vf_drivers_autoprobe() symbol
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().
Signed-off-by Yang Wang <[email protected]>
--- drivers/pci/iov.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/pci/iov.c +2 -0
@@ -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
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.
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