public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: kdoc_parser: allow __exit in function prototypes
@ 2026-02-06  6:54 Randy Dunlap
  2026-02-06  8:31 ` Mauro Carvalho Chehab
  2026-02-09 19:50 ` Jonathan Corbet
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2026-02-06  6:54 UTC (permalink / raw)
  To: linux-doc
  Cc: Randy Dunlap, Mauro Carvalho Chehab, Jonathan Corbet, Shuah Khan

Handle functions that are marked with __exit to prevent warnings:

Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in declarator or parameters
Invalid C declaration: Expecting "(" in parameters. [error at 12]
  void __exit iucv_exit (void)
  ------------^

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>

 tools/lib/python/kdoc/kdoc_parser.py |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20260204.orig/tools/lib/python/kdoc/kdoc_parser.py
+++ linux-next-20260204/tools/lib/python/kdoc/kdoc_parser.py
@@ -176,6 +176,7 @@ function_xforms  = [
     (KernRe(r"^__FORTIFY_INLINE +"), ""),
     (KernRe(r"__init +"), ""),
     (KernRe(r"__init_or_module +"), ""),
+    (KernRe(r"__exit +"), ""),
     (KernRe(r"__deprecated +"), ""),
     (KernRe(r"__flatten +"), ""),
     (KernRe(r"__meminit +"), ""),

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

* Re: [PATCH] docs: kdoc_parser: allow __exit in function prototypes
  2026-02-06  6:54 [PATCH] docs: kdoc_parser: allow __exit in function prototypes Randy Dunlap
@ 2026-02-06  8:31 ` Mauro Carvalho Chehab
  2026-02-09 19:50 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-02-06  8:31 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-doc, Mauro Carvalho Chehab, Jonathan Corbet, Shuah Khan

On Thu,  5 Feb 2026 22:54:40 -0800
Randy Dunlap <rdunlap@infradead.org> wrote:

> Handle functions that are marked with __exit to prevent warnings:
> 
> Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in declarator or parameters
> Invalid C declaration: Expecting "(" in parameters. [error at 12]
>   void __exit iucv_exit (void)
>   ------------^
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Shuah Khan <skhan@linuxfoundation.org>

Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> 
>  tools/lib/python/kdoc/kdoc_parser.py |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-next-20260204.orig/tools/lib/python/kdoc/kdoc_parser.py
> +++ linux-next-20260204/tools/lib/python/kdoc/kdoc_parser.py
> @@ -176,6 +176,7 @@ function_xforms  = [
>      (KernRe(r"^__FORTIFY_INLINE +"), ""),
>      (KernRe(r"__init +"), ""),
>      (KernRe(r"__init_or_module +"), ""),
> +    (KernRe(r"__exit +"), ""),
>      (KernRe(r"__deprecated +"), ""),
>      (KernRe(r"__flatten +"), ""),
>      (KernRe(r"__meminit +"), ""),



Thanks,
Mauro

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

* Re: [PATCH] docs: kdoc_parser: allow __exit in function prototypes
  2026-02-06  6:54 [PATCH] docs: kdoc_parser: allow __exit in function prototypes Randy Dunlap
  2026-02-06  8:31 ` Mauro Carvalho Chehab
@ 2026-02-09 19:50 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2026-02-09 19:50 UTC (permalink / raw)
  To: Randy Dunlap, linux-doc; +Cc: Randy Dunlap, Mauro Carvalho Chehab, Shuah Khan

Randy Dunlap <rdunlap@infradead.org> writes:

> Handle functions that are marked with __exit to prevent warnings:
>
> Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in declarator or parameters
> Invalid C declaration: Expecting "(" in parameters. [error at 12]
>   void __exit iucv_exit (void)
>   ------------^
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Shuah Khan <skhan@linuxfoundation.org>
>
>  tools/lib/python/kdoc/kdoc_parser.py |    1 +
>  1 file changed, 1 insertion(+)
>
> --- linux-next-20260204.orig/tools/lib/python/kdoc/kdoc_parser.py
> +++ linux-next-20260204/tools/lib/python/kdoc/kdoc_parser.py
> @@ -176,6 +176,7 @@ function_xforms  = [
>      (KernRe(r"^__FORTIFY_INLINE +"), ""),
>      (KernRe(r"__init +"), ""),
>      (KernRe(r"__init_or_module +"), ""),
> +    (KernRe(r"__exit +"), ""),
>      (KernRe(r"__deprecated +"), ""),

Applied, thanks.

jon

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

end of thread, other threads:[~2026-02-09 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06  6:54 [PATCH] docs: kdoc_parser: allow __exit in function prototypes Randy Dunlap
2026-02-06  8:31 ` Mauro Carvalho Chehab
2026-02-09 19:50 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox