From: Bart Van Assche <bvanassche@acm.org>
To: "Martin K . Petersen" <martin.petersen@oracle.com>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>,
linux-scsi@vger.kernel.org, Bart Van Assche <bvanassche@acm.org>,
kernel test robot <lkp@intel.com>,
Anil Gurumurthy <anil.gurumurthy@qlogic.com>,
Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>
Subject: [PATCH v2 06/12] scsi: bfa: Declare 'bfad_im_vport_attrs' static
Date: Mon, 29 Nov 2021 11:46:03 -0800 [thread overview]
Message-ID: <20211129194609.3466071-7-bvanassche@acm.org> (raw)
In-Reply-To: <20211129194609.3466071-1-bvanassche@acm.org>
Fix the following kernel-doc warning:
'bfad_im_vport_attrs' is only used in one source file. Hence declare this
array static.
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>
---
drivers/scsi/bfa/bfad_attr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
next prev parent reply other threads:[~2021-11-29 19:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-29 19:45 [PATCH v2 00/12] A series of small SCSI patches Bart Van Assche
2021-11-29 19:45 ` [PATCH v2 01/12] scsi: core: Suppress a kernel-doc warning Bart Van Assche
2021-12-13 2:53 ` Randy Dunlap
2021-12-13 3:03 ` Bart Van Assche
2021-12-13 3:06 ` Randy Dunlap
2021-11-29 19:45 ` [PATCH v2 02/12] scsi: core: Declare 'scsi_scan_type' static Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 03/12] scsi: core: Show SCMD_LAST in text form Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 04/12] scsi: a100u2w: Fix a kernel-doc warning Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 05/12] scsi: atp870u: " Bart Van Assche
2021-11-29 19:46 ` Bart Van Assche [this message]
2021-11-29 19:46 ` [PATCH v2 07/12] scsi: dc395x: " Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 08/12] scsi: initio: " Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 09/12] scsi: megaraid: " Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 10/12] scsi: pm8001: Fix kernel-doc warnings Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 11/12] scsi: pmcraid: Fix a kernel-doc warning Bart Van Assche
2021-11-29 19:46 ` [PATCH v2 12/12] scsi: Remove superfluous #include <linux/async.h> directives Bart Van Assche
2021-11-30 4:02 ` [PATCH v2 00/12] A series of small SCSI patches Martin K. Petersen
2021-12-03 3:03 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211129194609.3466071-7-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=anil.gurumurthy@qlogic.com \
--cc=jaegeuk@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=lkp@intel.com \
--cc=martin.petersen@oracle.com \
--cc=sudarsana.kalluru@qlogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).