powerpc/pcidn: Make IOV setup routines static
These are only used locally. It fixes these W=1 compile errors : ../arch/powerpc/platforms/pseries/pci.c:58:5: error: no previous prototype for ‘pseries_send_map_pe’ [-Werror=missing-prototypes] 58 | int pseries_send_map_pe(struct pci_dev *pdev, | ^~~~~~~~~~~~~~~~~~~ ../arch/powerpc/platforms/pseries/pci.c:91:6: error: no previous prototype for ‘pseries_set_pe_num’ [-Werror=missing-prototypes] 91 | void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) | ^~~~~~~~~~~~~~~~~~ ../arch/powerpc/platforms/pseries/pci.c:105:5: error: no previous prototype for ‘pseries_associate_pes’ [-Werror=missing-prototypes] 105 | int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs) | ^~~~~~~~~~~~~~~~~~~~~ ../arch/powerpc/platforms/pseries/pci.c:149:5: error: no previous prototype for ‘pseries_pci_sriov_enable’ [-Werror=missing-prototypes] 149 | int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) | ^~~~~~~~~~~~~~~~~~~~~~~~ ../arch/powerpc/platforms/pseries/pci.c:192:5: error: no previous prototype for ‘pseries_pcibios_sriov_enable’ [-Werror=missing-prototypes] 192 | int pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/powerpc/platforms/pseries/pci.c:199:5: error: no previous prototype for ‘pseries_pcibios_sriov_disable’ [-Werror=missing-prototypes] 199 | int pseries_pcibios_sriov_disable(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210104143206.695198-23-clg@kaod.org
This commit is contained in:
parent
42c1f400d1
commit
53137a9b51
@ -55,9 +55,8 @@ struct pe_map_bar_entry {
|
||||
__be32 reserved; /* Reserved Space */
|
||||
};
|
||||
|
||||
int pseries_send_map_pe(struct pci_dev *pdev,
|
||||
u16 num_vfs,
|
||||
struct pe_map_bar_entry *vf_pe_array)
|
||||
static int pseries_send_map_pe(struct pci_dev *pdev, u16 num_vfs,
|
||||
struct pe_map_bar_entry *vf_pe_array)
|
||||
{
|
||||
struct pci_dn *pdn;
|
||||
int rc;
|
||||
@ -88,7 +87,7 @@ int pseries_send_map_pe(struct pci_dev *pdev,
|
||||
return rc;
|
||||
}
|
||||
|
||||
void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num)
|
||||
static void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num)
|
||||
{
|
||||
struct pci_dn *pdn;
|
||||
|
||||
@ -102,7 +101,7 @@ void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num)
|
||||
pdn->pe_num_map[vf_index]);
|
||||
}
|
||||
|
||||
int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs)
|
||||
static int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs)
|
||||
{
|
||||
struct pci_dn *pdn;
|
||||
int i, rc, vf_index;
|
||||
@ -146,7 +145,7 @@ int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs)
|
||||
return rc;
|
||||
}
|
||||
|
||||
int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
static int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
{
|
||||
struct pci_dn *pdn;
|
||||
int rc;
|
||||
@ -189,14 +188,14 @@ int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
return rc;
|
||||
}
|
||||
|
||||
int pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
static int pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
|
||||
{
|
||||
/* Allocate PCI data */
|
||||
add_sriov_vf_pdns(pdev);
|
||||
return pseries_pci_sriov_enable(pdev, num_vfs);
|
||||
}
|
||||
|
||||
int pseries_pcibios_sriov_disable(struct pci_dev *pdev)
|
||||
static int pseries_pcibios_sriov_disable(struct pci_dev *pdev)
|
||||
{
|
||||
struct pci_dn *pdn;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user