Commit 53137a9b authored by Cédric Le Goater's avatar Cédric Le Goater Committed by Michael Ellerman

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: default avatarCédric Le Goater <clg@kaod.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210104143206.695198-23-clg@kaod.org
parent 42c1f400
...@@ -55,9 +55,8 @@ struct pe_map_bar_entry { ...@@ -55,9 +55,8 @@ struct pe_map_bar_entry {
__be32 reserved; /* Reserved Space */ __be32 reserved; /* Reserved Space */
}; };
int pseries_send_map_pe(struct pci_dev *pdev, static int pseries_send_map_pe(struct pci_dev *pdev, u16 num_vfs,
u16 num_vfs, struct pe_map_bar_entry *vf_pe_array)
struct pe_map_bar_entry *vf_pe_array)
{ {
struct pci_dn *pdn; struct pci_dn *pdn;
int rc; int rc;
...@@ -88,7 +87,7 @@ int pseries_send_map_pe(struct pci_dev *pdev, ...@@ -88,7 +87,7 @@ int pseries_send_map_pe(struct pci_dev *pdev,
return rc; 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; struct pci_dn *pdn;
...@@ -102,7 +101,7 @@ void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) ...@@ -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]); 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; struct pci_dn *pdn;
int i, rc, vf_index; int i, rc, vf_index;
...@@ -146,7 +145,7 @@ int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs) ...@@ -146,7 +145,7 @@ int pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs)
return rc; 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; struct pci_dn *pdn;
int rc; int rc;
...@@ -189,14 +188,14 @@ int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) ...@@ -189,14 +188,14 @@ int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)
return rc; 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 */ /* Allocate PCI data */
add_sriov_vf_pdns(pdev); add_sriov_vf_pdns(pdev);
return pseries_pci_sriov_enable(pdev, num_vfs); 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; struct pci_dn *pdn;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment