Skip to contentSkip to conversation

scsi: Fix the kerneldoc for scsi_initialize_rq()

PATCH Applied Jonathan Corbet 3 participants 3 messages Aug 24, 2017 – Aug 25, 2017 SCSI

lore
Share & tools
lore
#0 lore raw

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
index f6097b89d5d3..a76515814ee7 100644
@@ -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
#1 lore raw
Quoted 6 lines · Jonathan Corbet

/**
* 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.

#2 lore raw
In reply to Jonathan Corbet

Jonathan,

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