PCI/IOV: Move sysfs SR-IOV functions to iov.c
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Tue, 13 Aug 2019 20:45:13 +0000 (14:45 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Aug 2019 19:05:05 +0000 (14:05 -0500)
commitaaee0c1ffd6399d291b030b49d622b81dd5071c5
treee425adf83cc7379d45c005ec1f260cf3b6180c9d
parente2154044dd4168bc25c70170dfa6179b57f63914
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>
drivers/pci/iov.c
drivers/pci/pci-sysfs.c
drivers/pci/pci.h