linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: fix various kernel-doc problems in scsi_error.c
@ 2014-08-16 21:15 Randy Dunlap
  2014-08-18 15:44 ` Ewan Milne
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Randy Dunlap @ 2014-08-16 21:15 UTC (permalink / raw)
  To: James Bottomley, Christoph Hellwig; +Cc: linux-scsi

From: Randy Dunlap <rdunlap@infradead.org>

Convert spaces to tabs in kernel-doc notation.
Correct duplicated (copy-paste) kernel-doc comments that are incorrect.
Fix kernel-doc warning:

Warning(..//drivers/scsi/scsi_error.c:1647): No description found for parameter 'shost'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 drivers/scsi/scsi_error.c |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Index: lnx-317-rc1/drivers/scsi/scsi_error.c
===================================================================
--- lnx-317-rc1.orig/drivers/scsi/scsi_error.c
+++ lnx-317-rc1/drivers/scsi/scsi_error.c
@@ -1238,8 +1238,8 @@ retry_tur:
 /**
  * scsi_eh_test_devices - check if devices are responding from error recovery.
  * @cmd_list:	scsi commands in error recovery.
- * @work_q:     queue for commands which still need more error recovery
- * @done_q:     queue for commands which are finished
+ * @work_q:	queue for commands which still need more error recovery
+ * @done_q:	queue for commands which are finished
  * @try_stu:    boolean on if a STU command should be tried in addition to TUR.
  *
  * Decription:
@@ -1373,7 +1373,7 @@ static int scsi_eh_try_stu(struct scsi_c
  /**
  * scsi_eh_stu - send START_UNIT if needed
  * @shost:	&scsi host being recovered.
- * @work_q:     &list_head for pending commands.
+ * @work_q:	&list_head for pending commands.
  * @done_q:	&list_head for processed commands.
  *
  * Notes:
@@ -1436,7 +1436,7 @@ static int scsi_eh_stu(struct Scsi_Host
 /**
  * scsi_eh_bus_device_reset - send bdr if needed
  * @shost:	scsi host being recovered.
- * @work_q:     &list_head for pending commands.
+ * @work_q:	&list_head for pending commands.
  * @done_q:	&list_head for processed commands.
  *
  * Notes:
@@ -1502,7 +1502,7 @@ static int scsi_eh_bus_device_reset(stru
 /**
  * scsi_eh_target_reset - send target reset if needed
  * @shost:	scsi host being recovered.
- * @work_q:     &list_head for pending commands.
+ * @work_q:	&list_head for pending commands.
  * @done_q:	&list_head for processed commands.
  *
  * Notes:
@@ -1567,7 +1567,7 @@ static int scsi_eh_target_reset(struct S
 /**
  * scsi_eh_bus_reset - send a bus reset
  * @shost:	&scsi host being recovered.
- * @work_q:     &list_head for pending commands.
+ * @work_q:	&list_head for pending commands.
  * @done_q:	&list_head for processed commands.
  */
 static int scsi_eh_bus_reset(struct Scsi_Host *shost,
@@ -1638,8 +1638,9 @@ static int scsi_eh_bus_reset(struct Scsi
 
 /**
  * scsi_eh_host_reset - send a host reset
- * @work_q:	list_head for processed commands.
- * @done_q:	list_head for processed commands.
+ * @shost: 	host to be reset.
+ * @work_q:	&list_head for pending commands.
+ * @done_q:	&list_head for processed commands.
  */
 static int scsi_eh_host_reset(struct Scsi_Host *shost,
 			      struct list_head *work_q,
@@ -1677,8 +1678,8 @@ static int scsi_eh_host_reset(struct Scs
 
 /**
  * scsi_eh_offline_sdevs - offline scsi devices that fail to recover
- * @work_q:	list_head for processed commands.
- * @done_q:	list_head for processed commands.
+ * @work_q:	&list_head for pending commands.
+ * @done_q:	&list_head for processed commands.
  */
 static void scsi_eh_offline_sdevs(struct list_head *work_q,
 				  struct list_head *done_q)
@@ -2044,7 +2045,7 @@ static void scsi_restart_operations(stru
 /**
  * scsi_eh_ready_devs - check device ready state and recover if not.
  * @shost: 	host to be recovered.
- * @work_q:     &list_head for pending commands.
+ * @work_q:	&list_head for pending commands.
  * @done_q:	&list_head for processed commands.
  */
 void scsi_eh_ready_devs(struct Scsi_Host *shost,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fix various kernel-doc problems in scsi_error.c
  2014-08-16 21:15 [PATCH] scsi: fix various kernel-doc problems in scsi_error.c Randy Dunlap
@ 2014-08-18 15:44 ` Ewan Milne
  2014-08-19 17:28 ` Christoph Hellwig
  2014-08-26  8:48 ` Hannes Reinecke
  2 siblings, 0 replies; 4+ messages in thread
From: Ewan Milne @ 2014-08-18 15:44 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: James Bottomley, Christoph Hellwig, linux-scsi

On Sat, 2014-08-16 at 14:15 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Convert spaces to tabs in kernel-doc notation.
> Correct duplicated (copy-paste) kernel-doc comments that are incorrect.
> Fix kernel-doc warning:
> 
> Warning(..//drivers/scsi/scsi_error.c:1647): No description found for parameter 'shost'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

Cleaning this stuff up is great, see the notes below...

Reviewed-by: Ewan D. Milne <emilne@redhat.com>

> ---
>  drivers/scsi/scsi_error.c |   23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
> 
> Index: lnx-317-rc1/drivers/scsi/scsi_error.c
> ===================================================================
> --- lnx-317-rc1.orig/drivers/scsi/scsi_error.c
> +++ lnx-317-rc1/drivers/scsi/scsi_error.c
> @@ -1238,8 +1238,8 @@ retry_tur:
>  /**
>   * scsi_eh_test_devices - check if devices are responding from error recovery.
>   * @cmd_list:	scsi commands in error recovery.
> - * @work_q:     queue for commands which still need more error recovery
> - * @done_q:     queue for commands which are finished
> + * @work_q:	queue for commands which still need more error recovery
> + * @done_q:	queue for commands which are finished
>   * @try_stu:    boolean on if a STU command should be tried in addition to TUR.

There are still tabs instead of spaces after @try_stu.

>   *
>   * Decription:
> @@ -1373,7 +1373,7 @@ static int scsi_eh_try_stu(struct scsi_c
>   /**
>   * scsi_eh_stu - send START_UNIT if needed
>   * @shost:	&scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>   * @done_q:	&list_head for processed commands.
>   *
>   * Notes:
> @@ -1436,7 +1436,7 @@ static int scsi_eh_stu(struct Scsi_Host
>  /**
>   * scsi_eh_bus_device_reset - send bdr if needed
>   * @shost:	scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>   * @done_q:	&list_head for processed commands.
>   *
>   * Notes:
> @@ -1502,7 +1502,7 @@ static int scsi_eh_bus_device_reset(stru
>  /**
>   * scsi_eh_target_reset - send target reset if needed
>   * @shost:	scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>   * @done_q:	&list_head for processed commands.
>   *
>   * Notes:
> @@ -1567,7 +1567,7 @@ static int scsi_eh_target_reset(struct S
>  /**
>   * scsi_eh_bus_reset - send a bus reset
>   * @shost:	&scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>   * @done_q:	&list_head for processed commands.
>   */
>  static int scsi_eh_bus_reset(struct Scsi_Host *shost,
> @@ -1638,8 +1638,9 @@ static int scsi_eh_bus_reset(struct Scsi
>  
>  /**
>   * scsi_eh_host_reset - send a host reset
> - * @work_q:	list_head for processed commands.
> - * @done_q:	list_head for processed commands.
> + * @shost: 	host to be reset.

There is a space before the tab after @shost.

> + * @work_q:	&list_head for pending commands.
> + * @done_q:	&list_head for processed commands.
>   */
>  static int scsi_eh_host_reset(struct Scsi_Host *shost,
>  			      struct list_head *work_q,
> @@ -1677,8 +1678,8 @@ static int scsi_eh_host_reset(struct Scs
>  
>  /**
>   * scsi_eh_offline_sdevs - offline scsi devices that fail to recover
> - * @work_q:	list_head for processed commands.
> - * @done_q:	list_head for processed commands.
> + * @work_q:	&list_head for pending commands.
> + * @done_q:	&list_head for processed commands.
>   */
>  static void scsi_eh_offline_sdevs(struct list_head *work_q,
>  				  struct list_head *done_q)
> @@ -2044,7 +2045,7 @@ static void scsi_restart_operations(stru
>  /**
>   * scsi_eh_ready_devs - check device ready state and recover if not.
>   * @shost: 	host to be recovered.

There a space before the tab after @shost.

> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>   * @done_q:	&list_head for processed commands.
>   */
>  void scsi_eh_ready_devs(struct Scsi_Host *shost,
> --



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fix various kernel-doc problems in scsi_error.c
  2014-08-16 21:15 [PATCH] scsi: fix various kernel-doc problems in scsi_error.c Randy Dunlap
  2014-08-18 15:44 ` Ewan Milne
@ 2014-08-19 17:28 ` Christoph Hellwig
  2014-08-26  8:48 ` Hannes Reinecke
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2014-08-19 17:28 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: James Bottomley, linux-scsi

Thanks, I've applied both docbook fixups to the drivers-for-3.18 and
also addressed the addition nitpicks from Ewan.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fix various kernel-doc problems in scsi_error.c
  2014-08-16 21:15 [PATCH] scsi: fix various kernel-doc problems in scsi_error.c Randy Dunlap
  2014-08-18 15:44 ` Ewan Milne
  2014-08-19 17:28 ` Christoph Hellwig
@ 2014-08-26  8:48 ` Hannes Reinecke
  2 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2014-08-26  8:48 UTC (permalink / raw)
  To: Randy Dunlap, James Bottomley, Christoph Hellwig; +Cc: linux-scsi

On 08/16/2014 11:15 PM, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
>
> Convert spaces to tabs in kernel-doc notation.
> Correct duplicated (copy-paste) kernel-doc comments that are incorrect.
> Fix kernel-doc warning:
>
> Warning(..//drivers/scsi/scsi_error.c:1647): No description found for parameter 'shost'
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
>   drivers/scsi/scsi_error.c |   23 ++++++++++++-----------
>   1 file changed, 12 insertions(+), 11 deletions(-)
>
> Index: lnx-317-rc1/drivers/scsi/scsi_error.c
> ===================================================================
> --- lnx-317-rc1.orig/drivers/scsi/scsi_error.c
> +++ lnx-317-rc1/drivers/scsi/scsi_error.c
> @@ -1238,8 +1238,8 @@ retry_tur:
>   /**
>    * scsi_eh_test_devices - check if devices are responding from error recovery.
>    * @cmd_list:	scsi commands in error recovery.
> - * @work_q:     queue for commands which still need more error recovery
> - * @done_q:     queue for commands which are finished
> + * @work_q:	queue for commands which still need more error recovery
> + * @done_q:	queue for commands which are finished
>    * @try_stu:    boolean on if a STU command should be tried in addition to TUR.
>    *
>    * Decription:
> @@ -1373,7 +1373,7 @@ static int scsi_eh_try_stu(struct scsi_c
>    /**
>    * scsi_eh_stu - send START_UNIT if needed
>    * @shost:	&scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>    * @done_q:	&list_head for processed commands.
>    *
>    * Notes:
> @@ -1436,7 +1436,7 @@ static int scsi_eh_stu(struct Scsi_Host
>   /**
>    * scsi_eh_bus_device_reset - send bdr if needed
>    * @shost:	scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>    * @done_q:	&list_head for processed commands.
>    *
>    * Notes:
> @@ -1502,7 +1502,7 @@ static int scsi_eh_bus_device_reset(stru
>   /**
>    * scsi_eh_target_reset - send target reset if needed
>    * @shost:	scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>    * @done_q:	&list_head for processed commands.
>    *
>    * Notes:
> @@ -1567,7 +1567,7 @@ static int scsi_eh_target_reset(struct S
>   /**
>    * scsi_eh_bus_reset - send a bus reset
>    * @shost:	&scsi host being recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>    * @done_q:	&list_head for processed commands.
>    */
>   static int scsi_eh_bus_reset(struct Scsi_Host *shost,
> @@ -1638,8 +1638,9 @@ static int scsi_eh_bus_reset(struct Scsi
>
>   /**
>    * scsi_eh_host_reset - send a host reset
> - * @work_q:	list_head for processed commands.
> - * @done_q:	list_head for processed commands.
> + * @shost: 	host to be reset.
> + * @work_q:	&list_head for pending commands.
> + * @done_q:	&list_head for processed commands.
>    */
>   static int scsi_eh_host_reset(struct Scsi_Host *shost,
>   			      struct list_head *work_q,
> @@ -1677,8 +1678,8 @@ static int scsi_eh_host_reset(struct Scs
>
>   /**
>    * scsi_eh_offline_sdevs - offline scsi devices that fail to recover
> - * @work_q:	list_head for processed commands.
> - * @done_q:	list_head for processed commands.
> + * @work_q:	&list_head for pending commands.
> + * @done_q:	&list_head for processed commands.
>    */
>   static void scsi_eh_offline_sdevs(struct list_head *work_q,
>   				  struct list_head *done_q)
> @@ -2044,7 +2045,7 @@ static void scsi_restart_operations(stru
>   /**
>    * scsi_eh_ready_devs - check device ready state and recover if not.
>    * @shost: 	host to be recovered.
> - * @work_q:     &list_head for pending commands.
> + * @work_q:	&list_head for pending commands.
>    * @done_q:	&list_head for processed commands.
>    */
>   void scsi_eh_ready_devs(struct Scsi_Host *shost,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-26  8:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-16 21:15 [PATCH] scsi: fix various kernel-doc problems in scsi_error.c Randy Dunlap
2014-08-18 15:44 ` Ewan Milne
2014-08-19 17:28 ` Christoph Hellwig
2014-08-26  8:48 ` Hannes Reinecke

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).