diff mbox

[RFC] qla2xxx: sp_str[] can be static

Message ID 20171221052659.GA2018@lkp-wsm-ep1 (mailing list archive)
State Not Applicable
Headers show

Commit Message

kernel test robot Dec. 21, 2017, 5:26 a.m. UTC
Fixes: a3e84f0484ea ("qla2xxx: Fix stale memory access for name pointer")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 qla_gs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c
index 7e88e828..54c8dfd 100644
--- a/drivers/scsi/qla2xxx/qla_gs.c
+++ b/drivers/scsi/qla2xxx/qla_gs.c
@@ -15,7 +15,7 @@  static int qla2x00_sns_gnn_id(scsi_qla_host_t *, sw_info_t *);
 static int qla2x00_sns_rft_id(scsi_qla_host_t *);
 static int qla2x00_sns_rnn_id(scsi_qla_host_t *);
 
-struct sp_name sp_str[] = {
+static struct sp_name sp_str[] = {
 	{ SPCN_UNKNOWN, "unknown" },
 	{ SPCN_GIDPN, "gidpn" },
 	{ SPCN_GPSC, "gpsc" },