Skip to contentSkip to conversation

trivial: scsi: Fix warning on make htmldocs caused by scsi_transport_srp.c

PATCH In review Masanari Iida 2 participants 2 messages Feb 3, 2014 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: scsi: Fix warning on make htmldocs caused by scsi_transport_srp.c

This patch fixed following warnings on make htmldocs.

Warning(/drivers/scsi/scsi_transport_srp.c:819):
No description found for parameter 'rport'

---
 drivers/scsi/scsi_transport_srp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/scsi/scsi_transport_srp.c +2 -0
index d47ffc8..664eb38 100644
@@ -811,6 +811,8 @@ EXPORT_SYMBOL_GPL(srp_remove_host);
 /**
  * srp_stop_rport_timers - stop the transport layer recovery timers
  *
+ * @rport: SRP remote port to be removed
+ *
  * Must be called after srp_remove_host() and scsi_remove_host(). The caller
  * must hold a reference on the rport (rport->dev) and on the SCSI host
  * (rport->dev.parent).
Signature · 1 line
1.9.rc1
#1 lore raw
Quoted 15 lines · Masanari Iida

This patch fixed following warnings on make htmldocs.

Warning(/drivers/scsi/scsi_transport_srp.c:819):
No description found for parameter 'rport'

---
 drivers/scsi/scsi_transport_srp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/scsi/scsi_transport_srp.c +0 -0
index d47ffc8..664eb38 100644

drivers/scsi/scsi_transport_srp.c EXPORT_SYMBOL_GPL(srp_remove_host); · line 818

Quoted 8 lines
drivers/scsi/scsi_transport_srp.c +2 -0
@@ -811,6 +811,8 @@ EXPORT_SYMBOL_GPL(srp_remove_host);
 /**
  * srp_stop_rport_timers - stop the transport layer recovery timers
  *
+ * @rport: SRP remote port to be removed
+ *
  * Must be called after srp_remove_host() and scsi_remove_host(). The caller
  * must hold a reference on the rport (rport->dev) and on the SCSI host
  * (rport->dev.parent).

The comment added by this patch is wrong. That is easy to see by having a look at the function name and function description.

In case anyone is wondering why this kerneldoc warning was not addressed by commit 0c7f821: that patch was prepared against kernel v3.12-rc7 and the warning reported above is new in kernel v3.14-rc1.

Bart.