Commit 4ab2990a authored by Zou Wei's avatar Zou Wei Committed by Martin K. Petersen

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.comSigned-off-by: default avatarZou Wei <zou_wei@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6ac63216
...@@ -164,7 +164,7 @@ DEVICE_ATTR(beiscsi_active_session_count, S_IRUGO, ...@@ -164,7 +164,7 @@ DEVICE_ATTR(beiscsi_active_session_count, S_IRUGO,
beiscsi_active_session_disp, NULL); beiscsi_active_session_disp, NULL);
DEVICE_ATTR(beiscsi_free_session_count, S_IRUGO, DEVICE_ATTR(beiscsi_free_session_count, S_IRUGO,
beiscsi_free_session_disp, NULL); beiscsi_free_session_disp, NULL);
struct device_attribute *beiscsi_attrs[] = { static struct device_attribute *beiscsi_attrs[] = {
&dev_attr_beiscsi_log_enable, &dev_attr_beiscsi_log_enable,
&dev_attr_beiscsi_drvr_ver, &dev_attr_beiscsi_drvr_ver,
&dev_attr_beiscsi_adapter_family, &dev_attr_beiscsi_adapter_family,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment