From: Arnd Bergmann Date: Thu, 10 Aug 2023 14:19:25 +0000 (+0200) Subject: scsi: qlogicpti: Mark qlogicpti_info() static X-Git-Tag: v6.6.7~1928^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71cc486335c41e4393143b925dd33b018d407af2;p=platform%2Fkernel%2Flinux-starfive.git 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 Link: https://lore.kernel.org/r/20230810141947.1236730-8-arnd@kernel.org Reviewed-by: Jack Wang Acked-by: Palmer Dabbelt # RISC-V Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index f88a542..3b95f7a 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -843,7 +843,7 @@ static int qpti_map_queues(struct qlogicpti *qpti) return 0; } -const char *qlogicpti_info(struct Scsi_Host *host) +static const char *qlogicpti_info(struct Scsi_Host *host) { static char buf[80]; struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;