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

scsi: pm8001: Staticify 'pm80xx_pci_mem_copy' and 'mpi_set_phy_profile_req'

These are not invoked externally.

Fixes the following W=1 kernel build warning(s):

drivers/scsi/pm8001/pm80xx_hwi.c:69:6: warning: no previous prototype for ‘pm80xx_pci_mem_copy’ [-Wmissing-prototypes]
69 | void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset,
| ^~~~~~~~~~~~~~~~~~~
drivers/scsi/pm8001/pm80xx_hwi.c:5016:6: warning: no previous prototype for ‘mpi_set_phy_profile_req’ [-Wmissing-prototypes]
5016 | void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha,
| ^~~~~~~~~~~~~~~~~~~~~~~

Link: https://lore.kernel.org/r/20200721164148.2617584-26-lee.jones@linaro.org
Cc: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Lee Jones and committed by
Martin K. Petersen
ea310f57 7af29d45

+4 -3
+4 -3
drivers/scsi/pm8001/pm80xx_hwi.c
··· 66 66 return 0; 67 67 } 68 68 69 - void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset, 69 + static void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset, 70 70 const void *destination, 71 71 u32 dw_count, u32 bus_base_number) 72 72 { ··· 5013 5013 return IRQ_HANDLED; 5014 5014 } 5015 5015 5016 - void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, 5017 - u32 operation, u32 phyid, u32 length, u32 *buf) 5016 + static void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, 5017 + u32 operation, u32 phyid, 5018 + u32 length, u32 *buf) 5018 5019 { 5019 5020 u32 tag , i, j = 0; 5020 5021 int rc;