* [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11
@ 2026-07-31 14:45 Ryszard Knop
2026-07-31 16:45 ` Jonathan Corbet
2026-08-01 12:12 ` Akira Yokosawa
0 siblings, 2 replies; 3+ messages in thread
From: Ryszard Knop @ 2026-07-31 14:45 UTC (permalink / raw)
To: Akira Yokosawa, linux-doc
Cc: Randy Dunlap, Jonathan Corbet, Shuicheng Lin, Jani Nikula,
linux-kernel, intel-xe
The syntax used by the excess description suggestion change works on
Python 3.12+, while we need to support 3.9+.
Signed-off-by: Ryszard Knop <ryszard.knop@intel.com>
---
tools/lib/python/kdoc/kdoc_parser.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
index 884f42584667..9cba20f827c4 100644
--- a/tools/lib/python/kdoc/kdoc_parser.py
+++ b/tools/lib/python/kdoc/kdoc_parser.py
@@ -601,7 +601,8 @@ class KernelDoc:
if not suggestions:
return ""
- return f"(did you mean one of: '{"', '".join(suggestions)}')"
+ joined_suggestions = "', '".join(suggestions)
+ return f"(did you mean one of: '{joined_suggestions}')"
def check_sections(self, ln, decl_name, decl_type):
"""
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11
2026-07-31 14:45 [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11 Ryszard Knop
@ 2026-07-31 16:45 ` Jonathan Corbet
2026-08-01 12:12 ` Akira Yokosawa
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2026-07-31 16:45 UTC (permalink / raw)
To: Ryszard Knop, Akira Yokosawa, linux-doc
Cc: Randy Dunlap, Shuicheng Lin, Jani Nikula, linux-kernel, intel-xe
Ryszard Knop <ryszard.knop@intel.com> writes:
> The syntax used by the excess description suggestion change works on
> Python 3.12+, while we need to support 3.9+.
>
> Signed-off-by: Ryszard Knop <ryszard.knop@intel.com>
> ---
> tools/lib/python/kdoc/kdoc_parser.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
> index 884f42584667..9cba20f827c4 100644
> --- a/tools/lib/python/kdoc/kdoc_parser.py
> +++ b/tools/lib/python/kdoc/kdoc_parser.py
> @@ -601,7 +601,8 @@ class KernelDoc:
> if not suggestions:
> return ""
>
> - return f"(did you mean one of: '{"', '".join(suggestions)}')"
> + joined_suggestions = "', '".join(suggestions)
> + return f"(did you mean one of: '{joined_suggestions}')"
>
Thanks, I'll get this applied shortly.
For future reference, it needs both Fixes and Reported-by tags; I'll add
those when I apply it.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11
2026-07-31 14:45 [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11 Ryszard Knop
2026-07-31 16:45 ` Jonathan Corbet
@ 2026-08-01 12:12 ` Akira Yokosawa
1 sibling, 0 replies; 3+ messages in thread
From: Akira Yokosawa @ 2026-08-01 12:12 UTC (permalink / raw)
To: Ryszard Knop, linux-doc, Jonathan Corbet
Cc: Randy Dunlap, Shuicheng Lin, Jani Nikula, linux-kernel, intel-xe,
Akira Yokosawa
Hi,
On Fri, 31 Jul 2026 16:45:08 +0200, Ryszard Knop wrote:
> The syntax used by the excess description suggestion change works on
> Python 3.12+, while we need to support 3.9+.
>
> Signed-off-by: Ryszard Knop <ryszard.knop@intel.com>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
And here are needed tags for helping Jon (supposed to go ahead of Sob):
Fixes: d7758384ccb4 ("scripts/kernel-doc: Suggest possible names for excess descriptions")
Reported-by: Akira Yokosawa <akiyks@gmail.com>
Closes: https://lore.kernel.org/22a9276d-c103-4306-a617-7f34abcd5c29@gmail.com/
> ---
> tools/lib/python/kdoc/kdoc_parser.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/lib/python/kdoc/kdoc_parser.py b/tools/lib/python/kdoc/kdoc_parser.py
> index 884f42584667..9cba20f827c4 100644
> --- a/tools/lib/python/kdoc/kdoc_parser.py
> +++ b/tools/lib/python/kdoc/kdoc_parser.py
> @@ -601,7 +601,8 @@ class KernelDoc:
> if not suggestions:
> return ""
>
> - return f"(did you mean one of: '{"', '".join(suggestions)}')"
> + joined_suggestions = "', '".join(suggestions)
> + return f"(did you mean one of: '{joined_suggestions}')"
>
> def check_sections(self, ln, decl_name, decl_type):
> """
Thanks, Akira
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-01 12:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 14:45 [PATCH] scripts/kernel-doc: Fix kdoc for Python 3.9-3.11 Ryszard Knop
2026-07-31 16:45 ` Jonathan Corbet
2026-08-01 12:12 ` Akira Yokosawa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.