From patchwork Thu Dec 21 05:26:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 10126937 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D1FE60388 for ; Thu, 21 Dec 2017 05:27:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4180F297B7 for ; Thu, 21 Dec 2017 05:27:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3622229A70; Thu, 21 Dec 2017 05:27:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB3B0297B7 for ; Thu, 21 Dec 2017 05:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750914AbdLUF1i (ORCPT ); Thu, 21 Dec 2017 00:27:38 -0500 Received: from mga02.intel.com ([134.134.136.20]:22831 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbdLUF1i (ORCPT ); Thu, 21 Dec 2017 00:27:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2017 21:27:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,434,1508828400"; d="scan'208";a="188620161" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 20 Dec 2017 21:27:36 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1eRtUH-0006ec-ML; Thu, 21 Dec 2017 13:33:45 +0800 Date: Thu, 21 Dec 2017 13:26:59 +0800 From: kbuild test robot To: Himanshu Madhani Cc: kbuild-all@01.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, himanshu.madhani@cavium.com, linux-scsi@vger.kernel.org Subject: [RFC PATCH] qla2xxx: sp_str[] can be static Message-ID: <20171221052659.GA2018@lkp-wsm-ep1> References: <20171220065644.21511-2-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171220065644.21511-2-himanshu.madhani@cavium.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: a3e84f0484ea ("qla2xxx: Fix stale memory access for name pointer") Signed-off-by: Fengguang Wu --- qla_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" },