[PATCH 1/1] Change pci_enable_sriov, pci_disable_sriov and pci_reset_function to non-GPL symbol.

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

 



This will allow proprietary linux drivers to adopt SR-IOV spec from
PCI-SIG, also switch pci_reset_function to non-GPL symbol as it mainly
does pci config space access per spec.

Signed-off-by: Neo Jia <cjia@xxxxxxxxxx>
Signed-off-by: Kirti Wankhede <kwankhede@xxxxxxxxxx>
---
 drivers/pci/iov.c | 4 ++--
 drivers/pci/pci.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 6bacb8995e96..ecc6e7cddc57 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -673,7 +673,7 @@ int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
 
 	return sriov_enable(dev, nr_virtfn);
 }
-EXPORT_SYMBOL_GPL(pci_enable_sriov);
+EXPORT_SYMBOL(pci_enable_sriov);
 
 /**
  * pci_disable_sriov - disable the SR-IOV capability
@@ -688,7 +688,7 @@ void pci_disable_sriov(struct pci_dev *dev)
 
 	sriov_disable(dev);
 }
-EXPORT_SYMBOL_GPL(pci_disable_sriov);
+EXPORT_SYMBOL(pci_disable_sriov);
 
 /**
  * pci_num_vf - return number of VFs associated with a PF device_release_driver
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 4a7c6864fdf4..e8318abedc73 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4367,7 +4367,7 @@ int pci_reset_function(struct pci_dev *dev)
 
 	return rc;
 }
-EXPORT_SYMBOL_GPL(pci_reset_function);
+EXPORT_SYMBOL(pci_reset_function);
 
 /**
  * pci_reset_function_locked - quiesce and reset a PCI device function
-- 
2.7.4




[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