]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI/IOV: Add missing prototypes for powerpc pcibios interfaces
authorMathieu Malaterre <malat@debian.org>
Fri, 30 Mar 2018 22:39:31 +0000 (17:39 -0500)
committerBjorn Helgaas <helgaas@kernel.org>
Sat, 31 Mar 2018 20:32:46 +0000 (15:32 -0500)
commit619e6f340cec7c5d1449a2951dae5af0990bd0f5
tree4c1eb6059c57d54e848f83f2b67f3b401fbaf1ff
parentcf0921bea66c55600a48009597caa5fcb1419748
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>
include/linux/pci.h