Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/powernv: Make pnv_pci_sriov_enable() and friends static

The kernel test robot noticed these are non-static which causes Clang to
print some warnings. These are called via ppc_md function pointers so
there's no need for them to be non-static.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200705133557.443607-1-oohall@gmail.com

authored by

Oliver O'Halloran and committed by
Michael Ellerman
93eacd94 c339f9be

+4 -4
+4 -4
arch/powerpc/platforms/powernv/pci-ioda.c
··· 1490 1490 } 1491 1491 } 1492 1492 1493 - void pnv_pci_sriov_disable(struct pci_dev *pdev) 1493 + static void pnv_pci_sriov_disable(struct pci_dev *pdev) 1494 1494 { 1495 1495 struct pci_bus *bus; 1496 1496 struct pci_controller *hose; ··· 1600 1600 } 1601 1601 } 1602 1602 1603 - int pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) 1603 + static int pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) 1604 1604 { 1605 1605 struct pci_bus *bus; 1606 1606 struct pci_controller *hose; ··· 1715 1715 return ret; 1716 1716 } 1717 1717 1718 - int pnv_pcibios_sriov_disable(struct pci_dev *pdev) 1718 + static int pnv_pcibios_sriov_disable(struct pci_dev *pdev) 1719 1719 { 1720 1720 pnv_pci_sriov_disable(pdev); 1721 1721 ··· 1724 1724 return 0; 1725 1725 } 1726 1726 1727 - int pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) 1727 + static int pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) 1728 1728 { 1729 1729 /* Allocate PCI data */ 1730 1730 add_sriov_vf_pdns(pdev);