linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list
@ 2025-06-26  4:18 Bagas Sanjaya
  2025-06-26 16:16 ` Bart Van Assche
  0 siblings, 1 reply; 4+ messages in thread
From: Bagas Sanjaya @ 2025-06-26  4:18 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Linux SCSI
  Cc: James E.J. Bottomley, Martin K. Petersen, Rob Landley,
	Bagas Sanjaya

Sphinx reports indentation warning on scsi_track_queue_full() return
values:

Documentation/driver-api/scsi:101: ./drivers/scsi/scsi.c:247: ERROR: Unexpected indentation. [docutils]

Fix the warning by making the return values listing a bullet list.

Fixes: eb44820c28bc ("[SCSI] Add Documentation and integrate into docbook build")
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 drivers/scsi/scsi.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 518a252eb6aa05..ca8cf50824f35d 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -242,9 +242,10 @@ EXPORT_SYMBOL(scsi_change_queue_depth);
  * 		specific SCSI device to determine if and when there is a
  * 		need to adjust the queue depth on the device.
  *
- * Returns:	0 - No change needed, >0 - Adjust queue depth to this new depth,
- * 		-1 - Drop back to untagged operation using host->cmd_per_lun
- * 			as the untagged command depth
+ * Returns:	* 0 - No change needed
+ *		* >0 - Adjust queue depth to this new depth,
+ * 		* -1 - Drop back to untagged operation using host->cmd_per_lun
+ * 		  as the untagged command depth
  *
  * Lock Status:	None held on entry
  *
-- 
An old man doll... just what I always wanted! - Clara


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

* Re: [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list
  2025-06-26  4:18 [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list Bagas Sanjaya
@ 2025-06-26 16:16 ` Bart Van Assche
  2025-06-26 23:08   ` Bagas Sanjaya
  2025-07-01  2:50   ` Bagas Sanjaya
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Van Assche @ 2025-06-26 16:16 UTC (permalink / raw)
  To: Bagas Sanjaya, Linux Kernel Mailing List, Linux SCSI
  Cc: James E.J. Bottomley, Martin K. Petersen, Rob Landley

On 6/25/25 9:18 PM, Bagas Sanjaya wrote:
> - * Returns:	0 - No change needed, >0 - Adjust queue depth to this new depth,
> - * 		-1 - Drop back to untagged operation using host->cmd_per_lun
> - * 			as the untagged command depth
> + * Returns:	* 0 - No change needed
> + *		* >0 - Adjust queue depth to this new depth,
> + * 		* -1 - Drop back to untagged operation using host->cmd_per_lun
> + * 		  as the untagged command depth
>    *
>    * Lock Status:	None held on entry
>    *

Here is an example from Documentation/doc-guide/kernel-doc.rst:

       * Return:
       * * %0		- OK to runtime suspend the device
       * * %-EBUSY	- Device should not be runtime suspended

Wouldn't it be better to follow that example and to move the list under
'Returns:' and to move it more to the left?

Thanks,

Bart.

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

* Re: [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list
  2025-06-26 16:16 ` Bart Van Assche
@ 2025-06-26 23:08   ` Bagas Sanjaya
  2025-07-01  2:50   ` Bagas Sanjaya
  1 sibling, 0 replies; 4+ messages in thread
From: Bagas Sanjaya @ 2025-06-26 23:08 UTC (permalink / raw)
  To: Bart Van Assche, Linux Kernel Mailing List, Linux SCSI
  Cc: James E.J. Bottomley, Martin K. Petersen, Rob Landley

On 6/26/25 23:16, Bart Van Assche wrote:
> On 6/25/25 9:18 PM, Bagas Sanjaya wrote:
>> - * Returns:    0 - No change needed, >0 - Adjust queue depth to this 
>> new depth,
>> - *         -1 - Drop back to untagged operation using host->cmd_per_lun
>> - *             as the untagged command depth
>> + * Returns:    * 0 - No change needed
>> + *        * >0 - Adjust queue depth to this new depth,
>> + *         * -1 - Drop back to untagged operation using host- 
>> >cmd_per_lun
>> + *           as the untagged command depth
>>    *
>>    * Lock Status:    None held on entry
>>    *
> 
> Here is an example from Documentation/doc-guide/kernel-doc.rst:
> 
>        * Return:
>        * * %0        - OK to runtime suspend the device
>        * * %-EBUSY    - Device should not be runtime suspended
> 
> Wouldn't it be better to follow that example and to move the list under
> 'Returns:' and to move it more to the left?
> 

Ack.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

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

* Re: [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list
  2025-06-26 16:16 ` Bart Van Assche
  2025-06-26 23:08   ` Bagas Sanjaya
@ 2025-07-01  2:50   ` Bagas Sanjaya
  1 sibling, 0 replies; 4+ messages in thread
From: Bagas Sanjaya @ 2025-07-01  2:50 UTC (permalink / raw)
  To: Bart Van Assche, Linux Kernel Mailing List, Linux SCSI
  Cc: James E.J. Bottomley, Martin K. Petersen, Rob Landley

On 6/26/25 23:16, Bart Van Assche wrote:
> On 6/25/25 9:18 PM, Bagas Sanjaya wrote:
>> - * Returns:    0 - No change needed, >0 - Adjust queue depth to this 
>> new depth,
>> - *         -1 - Drop back to untagged operation using host->cmd_per_lun
>> - *             as the untagged command depth
>> + * Returns:    * 0 - No change needed
>> + *        * >0 - Adjust queue depth to this new depth,
>> + *         * -1 - Drop back to untagged operation using host- 
>> >cmd_per_lun
>> + *           as the untagged command depth
>>    *
>>    * Lock Status:    None held on entry
>>    *
> 
> Here is an example from Documentation/doc-guide/kernel-doc.rst:
> 
>        * Return:
>        * * %0        - OK to runtime suspend the device
>        * * %-EBUSY    - Device should not be runtime suspended
> 
> Wouldn't it be better to follow that example and to move the list under
> 'Returns:' and to move it more to the left?
> 

Ack. I will do that in v2.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

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

end of thread, other threads:[~2025-07-01  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26  4:18 [PATCH] scsi: Format scsi_track_queue_full() return values as bullet list Bagas Sanjaya
2025-06-26 16:16 ` Bart Van Assche
2025-06-26 23:08   ` Bagas Sanjaya
2025-07-01  2:50   ` Bagas Sanjaya

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