diff options
author | Mathieu Malaterre <malat@debian.org> | 2018-03-30 17:39:31 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-03-31 15:32:46 -0500 |
commit | 619e6f340cec7c5d1449a2951dae5af0990bd0f5 (patch) | |
tree | 4c1eb6059c57d54e848f83f2b67f3b401fbaf1ff /security | |
parent | cf0921bea66c55600a48009597caa5fcb1419748 (diff) |
PCI/IOV: Add missing prototypes for powerpc pcibios interfaces
Add missing prototypes for:
resource_size_t pcibios_default_alignment(void);
int pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs);
int pcibios_sriov_disable(struct pci_dev *pdev);
This fixes the following warnings treated as errors when using W=1:
arch/powerpc/kernel/pci-common.c:236:17: error: no previous prototype for ‘pcibios_default_alignment’ [-Werror=missing-prototypes]
arch/powerpc/kernel/pci-common.c:253:5: error: no previous prototype for ‘pcibios_sriov_enable’ [-Werror=missing-prototypes]
arch/powerpc/kernel/pci-common.c:261:5: error: no previous prototype for ‘pcibios_sriov_disable’ [-Werror=missing-prototypes]
Also, commit 978d2d683123 ("PCI: Add pcibios_iov_resource_alignment()
interface") added a new function but the prototype was located in the main
header instead of the CONFIG_PCI_IOV specific section. Move this function
next to the newly added ones.
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions