s390/pci: consolidate SR-IOV specific code
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 17 Aug 2020 08:29:23 +0000 (10:29 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 09:38:34 +0000 (11:38 +0200)
commitabb95b7550f88bfb77081601f80662a259f2d143
tree279a31d30451689625f0110e3dfc96e2a530c8cc
parentda1694ad9e8d13484c8b4ecaabde0bd7b958442a
s390/pci: consolidate SR-IOV specific code

currently we have multiple #ifdef CONFIG_PCI_IOV blocks spread over
different compliation units and headers, all dealing with SR-IOV
specific behavior.
This violates the style guide which discourages conditionally compiled
code blocks and hinders maintainability by speading SR-IOV functionality
over many files.

Let's move all of this into a conditionally compiled pci_iov.c file and
local header and prefix SR-IOV specific functions with zpci_iov_*.

Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/Makefile
arch/s390/pci/pci.c
arch/s390/pci/pci_bus.c
arch/s390/pci/pci_bus.h
arch/s390/pci/pci_iov.c [new file with mode: 0644]
arch/s390/pci/pci_iov.h [new file with mode: 0644]