Message ID | 20220805085639.1629653-1-KevinYang.Wang@amd.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | PCI/IOV: export pci_vf_drivers_autoprobe() symbol | expand |
On Fri, Aug 05, 2022 at 04:56:39PM +0800, Yang Wang wrote: > 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.
On Sat, Aug 06, 2022 at 01:14:07AM -0700, Christoph Hellwig wrote: > On Fri, Aug 05, 2022 at 04:56:39PM +0800, Yang Wang wrote: > > 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
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
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@amd.com> --- drivers/pci/iov.c | 2 ++ 1 file changed, 2 insertions(+)