Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp640815ybz; Wed, 15 Apr 2020 15:45:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLAE6n3+eI7u7oM59GOU0kEM417Jr5NZv4BzyQeICEUDBPV2ayvvnXaxmB3LLmmBP9+fqef X-Received: by 2002:a17:907:2645:: with SMTP id ar5mr7185375ejc.75.1586990705301; Wed, 15 Apr 2020 15:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586990705; cv=none; d=google.com; s=arc-20160816; b=fUBJP5/Hc+Es4CBtJR0woo0FKT7dy4Ow2yPWSPyvlyt3AKthamdIhm0BQ4HlTEWMCR g4RagsfuaKlSdD3YbfqJQRrC7h88KpNOPmGhDVTdqTC/+X702A7ZnE9sh/R8K9h1h4DJ 5olHjqefbObf4yIT2sha5Gkpawirfhv1/+vKppgqELOwRqka0SDWHOvOn7XvejnVLYlW ZR8rxsWT3ggjzdxIpUN2KjkNnZkKlmsWI2OWb4pvopme6G971pumjWQNOSgJm67d0nhM bNArgvCQ9xflVwo/Q6L/wadjzjuZZlaOtRv1VVf/ELiBJru5ajb0gnRTEgUsbbWKu/XB /uWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QACMnZRqxv7blFxn075H5XMZeNysGLWZATJt4eHp5uA=; b=h7U/bay/ZUIoRFtLKU6ERKQ8qjYcSIbgUfngBEUqNT40UcYKXXCTYaO/BSyBQKKpag yCCr5w6lVDNH0zIdt951MYwc2LXmcKhVsbzray73iGzQvSS//d8yAYUkAyoh3ObLFC6g Ar3rbyH3szZGkkhddIP6/fG0wI5iaXepmtbQkhPbQNTjlfxB3iHRY1+fmzkVPvOkBrBP OEYaCSiL4XcH7mbRpdOQNzh6FOJqd/xdStqlTwYF66USC83+uMeh6cosfb2BgdG3uEII cxaBw3Rn5FFd/FZ5VhzZaFVoXQz6y5dNRoj80JnxyKBdSOMOo+7XI/LOGelkJunOs/q1 IRTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc19si5841131ejb.487.2020.04.15.15.44.42; Wed, 15 Apr 2020 15:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408362AbgDOJMP (ORCPT + 99 others); Wed, 15 Apr 2020 05:12:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39072 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2408348AbgDOJML (ORCPT ); Wed, 15 Apr 2020 05:12:11 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 25C2ACC36F596187A371; Wed, 15 Apr 2020 17:12:06 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 15 Apr 2020 17:12:00 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH 2/3] scsi: fnic: make fnic_list and fnic_list_lock static Date: Wed, 15 Apr 2020 17:38:08 +0800 Message-ID: <20200415093809.9365-2-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200415093809.9365-1-yanaijie@huawei.com> References: <20200415093809.9365-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/scsi/fnic/fnic_main.c:52:1: warning: symbol 'fnic_list' was not declared. Should it be static? drivers/scsi/fnic/fnic_main.c:53:1: warning: symbol 'fnic_list_lock' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/scsi/fnic/fnic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 18584ab27c32..7910b573bacb 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c @@ -49,8 +49,8 @@ static struct kmem_cache *fnic_sgl_cache[FNIC_SGL_NUM_CACHES]; static struct kmem_cache *fnic_io_req_cache; -LIST_HEAD(fnic_list); -DEFINE_SPINLOCK(fnic_list_lock); +static LIST_HEAD(fnic_list); +static DEFINE_SPINLOCK(fnic_list_lock); /* Supported devices by fnic module */ static struct pci_device_id fnic_id_table[] = { -- 2.21.1