scsi: Fix the kerneldoc for scsi_initialize_rq()
PATCH 1/1 scsi: Fix the kerneldoc for scsi_initialize_rq()
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.
--- drivers/scsi/scsi_lib.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/scsi_lib.c +1 -0
@@ -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(). */
Signature · 1 line
2.13.4
Quoted 6 lines · Jonathan Corbet
/**
*scsi_initialize_rq- initialize struct scsi_cmnd.req
+ * @rq: Request used to locate thescsi_cmndstructure. *
* Called from insideblk_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.
Martin K. Petersen
AppliedJonathan,
Quoted 2 lines
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!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering