]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: qla2xxx: Declare qla2xxx_mqueuecommand() static
authorBart Van Assche <bvanassche@acm.org>
Thu, 15 Jan 2026 21:03:40 +0000 (13:03 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 24 Jan 2026 02:32:34 +0000 (21:32 -0500)
Prevent that a later patch that modifies the qla2xxx_mqueuecommand()
declaration triggers the following checkpatch warning: "externs should
be avoided in .c files".

Cc: Nilesh Javali <njavali@marvell.com>
Cc: GR-QLogic-Storage-Upstream@marvell.com
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20260115210357.2501991-5-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c

index c9aff70e7357b67373f75efc0fac3deb24b47338..fb0b689cbacd5d07f9941ee0f01f7769499fe782 100644 (file)
@@ -402,7 +402,7 @@ static int qla2x00_mem_alloc(struct qla_hw_data *, uint16_t, uint16_t,
        struct req_que **, struct rsp_que **);
 static void qla2x00_free_fw_dump(struct qla_hw_data *);
 static void qla2x00_mem_free(struct qla_hw_data *);
-int qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd,
+static int qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd,
        struct qla_qpair *qpair);
 
 /* -------------------------------------------------------------------------- */
@@ -981,7 +981,7 @@ qc24_fail_command:
 }
 
 /* For MQ supported I/O */
-int
+static int
 qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd,
     struct qla_qpair *qpair)
 {