Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Martin K. Petersen
69e62379 471d6840

+1 -1
+1 -1
drivers/scsi/bfa/bfad_attr.c
··· 981 981 NULL 982 982 }; 983 983 984 - struct attribute *bfad_im_vport_attrs[] = { 984 + static struct attribute *bfad_im_vport_attrs[] = { 985 985 &dev_attr_serial_number.attr, 986 986 &dev_attr_model.attr, 987 987 &dev_attr_model_description.attr,