summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorKelsey Skunberg <skunberg.kelsey@gmail.com>2019-08-13 14:45:13 -0600
committerBjorn Helgaas <bhelgaas@google.com>2019-08-20 14:05:05 -0500
commitaaee0c1ffd6399d291b030b49d622b81dd5071c5 (patch)
treee425adf83cc7379d45c005ec1f260cf3b6180c9d /drivers/pci/pci.h
parente2154044dd4168bc25c70170dfa6179b57f63914 (diff)
downloadlinux-aaee0c1ffd6399d291b030b49d622b81dd5071c5.tar.gz
linux-aaee0c1ffd6399d291b030b49d622b81dd5071c5.tar.bz2
linux-aaee0c1ffd6399d291b030b49d622b81dd5071c5.zip
PCI/IOV: Move sysfs SR-IOV functions to iov.c
The sysfs SR-IOV functions are only needed when the kernel is built with SR-IOV support. Rather than put them in pci-sysfs.c under #ifdef CONFIG_PCI_IOV, move them to iov.c, which is only compiled when CONFIG_PCI_IOV=y. Link: https://lore.kernel.org/r/20190813204513.4790-4-skunberg.kelsey@gmail.com Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Donald Dutile <ddutile@redhat.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 1be03a97cb92..061a935ac18e 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -433,7 +433,7 @@ void pci_iov_update_resource(struct pci_dev *dev, int resno);
resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno);
void pci_restore_iov_state(struct pci_dev *dev);
int pci_iov_bus_range(struct pci_bus *bus);
-
+extern const struct attribute_group sriov_dev_attr_group;
#else
static inline int pci_iov_init(struct pci_dev *dev)
{