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

scsi: qlogicpti: Mark qlogicpti_info() static

The qlogicpti_info() function is only used in this file and should be
static to avoid a warning:

drivers/scsi/qlogicpti.c:846:13: error: no previous prototype for 'qlogicpti_info' [-Werror=missing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230810141947.1236730-8-arnd@kernel.org
Reviewed-by: Jack Wang <jinpu.wang@ionos.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com> # RISC-V
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Arnd Bergmann and committed by
Martin K. Petersen
71cc4863 68a4f84a

+1 -1
+1 -1
drivers/scsi/qlogicpti.c
··· 843 843 return 0; 844 844 } 845 845 846 - const char *qlogicpti_info(struct Scsi_Host *host) 846 + static const char *qlogicpti_info(struct Scsi_Host *host) 847 847 { 848 848 static char buf[80]; 849 849 struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;