linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api
@ 2020-09-05 21:03 Nícolas F. R. A. Prado
  2020-09-05 21:16 ` Randy Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nícolas F. R. A. Prado @ 2020-09-05 21:03 UTC (permalink / raw)
  To: Martin K . Petersen, James E . J . Bottomley, Jonathan Corbet
  Cc: linux-scsi, linux-doc, linux-kernel, Randy Dunlap, lkcamp, andrealmeid

Commit 91ebc1facd77 ("scsi: core: remove Scsi_Cmnd typedef") removed
the Scsi_cmnd typedef but it was still mentioned in a paragraph in the
"SCSI mid_level - lower_level driver interface" documentation page.
Remove this obsolete paragraph.

Suggested-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@protonmail.com>
---

Hi,

Is this documentation page still relevant or should it be removed? I'm asking
since it hasn't been updated in a while and there's mention of 2.6 kernel.

In case it is still relevant, would patches changing the embedded kernel-docs
for references to the kernel-docs in the source files be welcome?
Also, I see that for example, scsi_add_device, has a kernel-doc in this page,
even though there isn't any in the source code. Would a patch moving this
function description to the source code be welcome?

Thanks,
Nícolas

 Documentation/scsi/scsi_mid_low_api.rst | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/Documentation/scsi/scsi_mid_low_api.rst b/Documentation/scsi/scsi_mid_low_api.rst
index 5358bc10689e..5bc17d012b25 100644
--- a/Documentation/scsi/scsi_mid_low_api.rst
+++ b/Documentation/scsi/scsi_mid_low_api.rst
@@ -271,12 +271,6 @@ Conventions
 First, Linus Torvalds's thoughts on C coding style can be found in the
 Documentation/process/coding-style.rst file.
 
-Next, there is a movement to "outlaw" typedefs introducing synonyms for
-struct tags. Both can be still found in the SCSI subsystem, but
-the typedefs have been moved to a single file, scsi_typedefs.h to
-make their future removal easier, for example:
-"typedef struct scsi_cmnd Scsi_Cmnd;"
-
 Also, most C99 enhancements are encouraged to the extent they are supported
 by the relevant gcc compilers. So C99 style structure and array
 initializers are encouraged where appropriate. Don't go too far,
-- 
2.28.0



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

* Re: [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api
  2020-09-05 21:03 [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api Nícolas F. R. A. Prado
@ 2020-09-05 21:16 ` Randy Dunlap
  2020-09-09  2:05 ` Martin K. Petersen
  2020-09-15 20:16 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2020-09-05 21:16 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado, Martin K . Petersen,
	James E . J . Bottomley, Jonathan Corbet
  Cc: linux-scsi, linux-doc, linux-kernel, lkcamp, andrealmeid

On 9/5/20 2:03 PM, Nícolas F. R. A. Prado wrote:
> Commit 91ebc1facd77 ("scsi: core: remove Scsi_Cmnd typedef") removed
> the Scsi_cmnd typedef but it was still mentioned in a paragraph in the
> "SCSI mid_level - lower_level driver interface" documentation page.
> Remove this obsolete paragraph.
> 
> Suggested-by: Randy Dunlap <rdunlap@infradead.org>
> Suggested-by: Jonathan Corbet <corbet@lwn.net>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@protonmail.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
> 
> Hi,
> 
> Is this documentation page still relevant or should it be removed? I'm asking
> since it hasn't been updated in a while and there's mention of 2.6 kernel.
> 
> In case it is still relevant, would patches changing the embedded kernel-docs
> for references to the kernel-docs in the source files be welcome?
> Also, I see that for example, scsi_add_device, has a kernel-doc in this page,
> even though there isn't any in the source code. Would a patch moving this
> function description to the source code be welcome?
> 
> Thanks,
> Nícolas
> 
>  Documentation/scsi/scsi_mid_low_api.rst | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/Documentation/scsi/scsi_mid_low_api.rst b/Documentation/scsi/scsi_mid_low_api.rst
> index 5358bc10689e..5bc17d012b25 100644
> --- a/Documentation/scsi/scsi_mid_low_api.rst
> +++ b/Documentation/scsi/scsi_mid_low_api.rst
> @@ -271,12 +271,6 @@ Conventions
>  First, Linus Torvalds's thoughts on C coding style can be found in the
>  Documentation/process/coding-style.rst file.
>  
> -Next, there is a movement to "outlaw" typedefs introducing synonyms for
> -struct tags. Both can be still found in the SCSI subsystem, but
> -the typedefs have been moved to a single file, scsi_typedefs.h to
> -make their future removal easier, for example:
> -"typedef struct scsi_cmnd Scsi_Cmnd;"
> -
>  Also, most C99 enhancements are encouraged to the extent they are supported
>  by the relevant gcc compilers. So C99 style structure and array
>  initializers are encouraged where appropriate. Don't go too far,
> 


-- 
~Randy

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

* Re: [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api
  2020-09-05 21:03 [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api Nícolas F. R. A. Prado
  2020-09-05 21:16 ` Randy Dunlap
@ 2020-09-09  2:05 ` Martin K. Petersen
  2020-09-15 20:16 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2020-09-09  2:05 UTC (permalink / raw)
  To: Nícolas F. R. A. Prado
  Cc: Martin K . Petersen, James E . J . Bottomley, Jonathan Corbet,
	linux-scsi, linux-doc, linux-kernel, Randy Dunlap, lkcamp,
	andrealmeid


Nícolas,

> Commit 91ebc1facd77 ("scsi: core: remove Scsi_Cmnd typedef") removed
> the Scsi_cmnd typedef but it was still mentioned in a paragraph in the
> "SCSI mid_level - lower_level driver interface" documentation page.
> Remove this obsolete paragraph.

Applied to my 5.10 staging tree. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* Re: [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api
  2020-09-05 21:03 [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api Nícolas F. R. A. Prado
  2020-09-05 21:16 ` Randy Dunlap
  2020-09-09  2:05 ` Martin K. Petersen
@ 2020-09-15 20:16 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2020-09-15 20:16 UTC (permalink / raw)
  To: Nícolas F . R . A . Prado, Jonathan Corbet, James E . J . Bottomley
  Cc: Martin K . Petersen, linux-doc, linux-kernel, andrealmeid,
	lkcamp, Randy Dunlap, linux-scsi

On Sat, 05 Sep 2020 21:03:00 +0000, Nícolas F. R. A. Prado wrote:

> Commit 91ebc1facd77 ("scsi: core: remove Scsi_Cmnd typedef") removed
> the Scsi_cmnd typedef but it was still mentioned in a paragraph in the
> "SCSI mid_level - lower_level driver interface" documentation page.
> Remove this obsolete paragraph.

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api
      https://git.kernel.org/mkp/scsi/c/5476b7f5ae7b

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2020-09-15 23:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05 21:03 [PATCH] scsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api Nícolas F. R. A. Prado
2020-09-05 21:16 ` Randy Dunlap
2020-09-09  2:05 ` Martin K. Petersen
2020-09-15 20:16 ` Martin K. Petersen

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