scsi: qlogicpti: Mark qlogicpti_info() static
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Aug 2023 14:19:25 +0000 (16:19 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 21 Aug 2023 20:37:11 +0000 (16:37 -0400)
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>
drivers/scsi/qlogicpti.c

index f88a542..3b95f7a 100644 (file)
@@ -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;