Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1725413pxb; Fri, 13 Nov 2020 23:32:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBgnDGMBovr5h/6N5+B0stGpl92rM2puNCZM0nJfgtUA6zI1dyPP5FQLGdB7nZ3bMzUeP3 X-Received: by 2002:aa7:d894:: with SMTP id u20mr6333563edq.284.1605339137738; Fri, 13 Nov 2020 23:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605339137; cv=none; d=google.com; s=arc-20160816; b=G5G+sNH8ToRzFtPKgDAuq/KqctHyy+A9EOK2DyLMpYU7xbegcog/90q+R/WT8AiZeC gHQVD1olomgHG0Hxq4uh264tlYfLq/iVZK4lQa33OmWoLbpEauplmBJc6ev80AdsZ8DD bfFWn5hNoUx/gpUz63XwPxQMqiPmqjBYsrqyK8Xz/wJZO7EzZyRnXX4c1dRtqjCWPPDU J06wCYymBK1RiIM2qgXDwpR8bo0Rvto+16hMeFg6IwtR5QyYcutEMdS7ZmT1HP5ZOOB3 t98PMrRGDPLIwM057MxAGkwkLvCGkKaeL8Aezhe9r4HKNXEjAfrAWzJ+oTU67SXBf6jh J79w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=q0q2wD+56BSz4jeopZTJDD7qSRE9iaDR+go/hZvpYRk=; b=lQ+iZlMDHPRGeBO2vOold3SCrJZIrPfJMD4axdt/j4el7tDbSlAJg7/iuzIW7h/IpZ pgM0LE++G+IZWloZvWvlGJwgExeDjO09VHnOfwbNIpFtqZ5vIhi3QMETmMDgDDUL+VE9 krTJiXrmA5AMFNRnDnbeiaSt0po1oZEr7CoaOE7yRPwl2BicmB8qd0S4VYY1Crbn25FP KQ8NG/Xm+UabMGSnYUH8pmgQWctc1DopiUrk/y9RuIdOf+XsM6Je70kb6ecF/aSxyQjx 2WEVx+MQosSbxn87S3vPOIfEpqANFyy6epKcES7iJocERn8OnqwsOe4dZVuWbbeucyPw X8iQ== 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 32si7724818edr.232.2020.11.13.23.31.27; Fri, 13 Nov 2020 23:32:17 -0800 (PST) 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 S1726481AbgKNH0R (ORCPT + 99 others); Sat, 14 Nov 2020 02:26:17 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7897 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbgKNH0R (ORCPT ); Sat, 14 Nov 2020 02:26:17 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CY6MF3c42z75b3; Sat, 14 Nov 2020 15:26:01 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 15:26:05 +0800 From: Zou Wei To: , , , , CC: , , Zou Wei Subject: [PATCH -next] scsi: be2iscsi: Mark beiscsi_attrs with static keyword Date: Sat, 14 Nov 2020 15:37:54 +0800 Message-ID: <1605339474-22329-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: ./be_main.c:167:25: warning: symbol 'beiscsi_attrs' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/scsi/be2iscsi/be_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 202ba92..50e4642 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -164,7 +164,7 @@ DEVICE_ATTR(beiscsi_active_session_count, S_IRUGO, beiscsi_active_session_disp, NULL); DEVICE_ATTR(beiscsi_free_session_count, S_IRUGO, beiscsi_free_session_disp, NULL); -struct device_attribute *beiscsi_attrs[] = { +static struct device_attribute *beiscsi_attrs[] = { &dev_attr_beiscsi_log_enable, &dev_attr_beiscsi_drvr_ver, &dev_attr_beiscsi_adapter_family, -- 2.6.2