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

scsi: bfa: Staticify non-external functions

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

drivers/scsi/bfa/bfa_ioc.c:5023:1: warning: no previous prototype for ‘bfa_diag_intr’ [-Wmissing-prototypes]
5023 | bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg)
| ^~~~~~~~~~~~~
drivers/scsi/bfa/bfa_ioc.c:6966:1: warning: no previous prototype for ‘bfa_flash_sem_get’ [-Wmissing-prototypes]
6966 | bfa_flash_sem_get(void __iomem *bar)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/bfa/bfa_ioc.c:6979:1: warning: no previous prototype for ‘bfa_flash_sem_put’ [-Wmissing-prototypes]
6979 | bfa_flash_sem_put(void __iomem *bar)
| ^~~~~~~~~~~~~~~~~

Link: https://lore.kernel.org/r/20200723122446.1329773-24-lee.jones@linaro.org
Cc: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Cc: Sudarsana Kalluru <sudarsana.kalluru@qlogic.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
00025fc7 f11106c9

+3 -3
+3 -3
drivers/scsi/bfa/bfa_ioc.c
··· 5019 5019 /* 5020 5020 * Diag hmbox handler 5021 5021 */ 5022 - void 5022 + static void 5023 5023 bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg) 5024 5024 { 5025 5025 struct bfa_diag_s *diag = diagarg; ··· 6962 6962 6963 6963 } 6964 6964 6965 - bfa_status_t 6965 + static bfa_status_t 6966 6966 bfa_flash_sem_get(void __iomem *bar) 6967 6967 { 6968 6968 u32 n = FLASH_BLOCKING_OP_MAX; ··· 6975 6975 return BFA_STATUS_OK; 6976 6976 } 6977 6977 6978 - void 6978 + static void 6979 6979 bfa_flash_sem_put(void __iomem *bar) 6980 6980 { 6981 6981 writel(0, (bar + FLASH_SEM_LOCK_REG));