* [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq()
@ 2017-08-24 22:11 Jonathan Corbet
2017-08-24 23:26 ` Bart Van Assche
2017-08-25 21:39 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Corbet @ 2017-08-24 22:11 UTC (permalink / raw)
To: James E.J. Bottomley, Martin K. Petersen; +Cc: linux-scsi, linux-doc
The kerneldoc comment for scsi_initialize_rq() neglected to document the
"rq" parameter, leading to this docs build warning:
./drivers/scsi/scsi_lib.c:1116: warning: No description found for parameter 'rq'
Document the parameter and make the build slightly quieter.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
---
drivers/scsi/scsi_lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index f6097b89d5d3..a76515814ee7 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1108,6 +1108,7 @@ EXPORT_SYMBOL(scsi_init_io);
/**
* scsi_initialize_rq - initialize struct scsi_cmnd.req
+ * @rq: Request used to locate the scsi_cmnd structure.
*
* Called from inside blk_get_request().
*/
--
2.13.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq()
2017-08-24 22:11 [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq() Jonathan Corbet
@ 2017-08-24 23:26 ` Bart Van Assche
2017-08-25 21:39 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2017-08-24 23:26 UTC (permalink / raw)
To: jejb@linux.vnet.ibm.com, corbet@lwn.net,
martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-doc@vger.kernel.org
On Thu, 2017-08-24 at 16:11 -0600, Jonathan Corbet wrote:
> /**
> * scsi_initialize_rq - initialize struct scsi_cmnd.req
> + * @rq: Request used to locate the scsi_cmnd structure.
> *
> * Called from inside blk_get_request().
> */
Since the request structure and the SCSI command structure are adjacent,
how about the following:
@rq: Request associated with the SCSI command to be initialized.
Thanks,
Bart.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq()
2017-08-24 22:11 [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq() Jonathan Corbet
2017-08-24 23:26 ` Bart Van Assche
@ 2017-08-25 21:39 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2017-08-25 21:39 UTC (permalink / raw)
To: Jonathan Corbet
Cc: James E.J. Bottomley, Martin K. Petersen, linux-scsi, linux-doc
Jonathan,
> The kerneldoc comment for scsi_initialize_rq() neglected to document
> the "rq" parameter, leading to this docs build warning:
Applied to 4.14/scsi-queue. Tweaked the wording based on Bart's
comments. Thank you!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-25 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 22:11 [PATCH] scsi: Fix the kerneldoc for scsi_initialize_rq() Jonathan Corbet
2017-08-24 23:26 ` Bart Van Assche
2017-08-25 21:39 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox