mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
scsi: be2iscsi: Mark beiscsi_attrs with static keyword
Fix the following sparse warning: ./be_main.c:167:25: warning: symbol 'beiscsi_attrs' was not declared. Should it be static? Link: https://lore.kernel.org/r/1605339474-22329-1-git-send-email-zou_wei@huawei.com Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6ac63216a7
commit
4ab2990a5c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user