summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-11-29 20:46:03 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-30 05:02:14 +0100
commit69e623791eb3ff3457c71ef734fdc82f6f3cc3c1 (patch)
treef857c81d0077f9652621c1e7630c1574ae86ba58 /drivers/scsi/bfa
parentscsi: atp870u: Fix a kernel-doc warning (diff)
downloadlinux-69e623791eb3ff3457c71ef734fdc82f6f3cc3c1.tar.xz
linux-69e623791eb3ff3457c71ef734fdc82f6f3cc3c1.zip
scsi: bfa: Declare 'bfad_im_vport_attrs' static
Fix the following kernel-doc warning: 'bfad_im_vport_attrs' is only used in one source file. Hence declare this array static. Link: https://lore.kernel.org/r/20211129194609.3466071-7-bvanassche@acm.org Fixes: e73af234a1a2 ("scsi: bfa: Switch to attribute groups") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/bfa')
-rw-r--r--drivers/scsi/bfa/bfad_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c
index c8b947c16069..f46989bd083c 100644
--- a/drivers/scsi/bfa/bfad_attr.c
+++ b/drivers/scsi/bfa/bfad_attr.c
@@ -981,7 +981,7 @@ const struct attribute_group *bfad_im_host_groups[] = {
NULL
};
-struct attribute *bfad_im_vport_attrs[] = {
+static struct attribute *bfad_im_vport_attrs[] = {
&dev_attr_serial_number.attr,
&dev_attr_model.attr,
&dev_attr_model_description.attr,