* [PATCH] vt: Escape the CUR_ prefix in the cursor kernel-doc
@ 2026-11-25 18:29 TAKANO Mitsuhiro
0 siblings, 0 replies; only message in thread
From: TAKANO Mitsuhiro @ 2026-11-25 18:29 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby
Cc: linux-serial, linux-kernel, TAKANO Mitsuhiro
A trailing underscore is how reST writes a link to a target, so `CUR_`
in the prose is read as a reference to a target named "cur" and the
build fails for the three cursor helpers:
drivers/tty/vt/vt.c:276: ERROR: Unknown target name: "cur"
The same line appears in vc_cursor_start() and vc_cursor_end(). Wrap
the prefix in double backticks, which is how the rest of the kernel
marks a literal, and all three render without an error.
Verification: before the change, each of
$ ./scripts/kernel-doc -rst -function vc_cursor_valid_size \
drivers/tty/vt/vt.c > x.rst
$ rst2pseudoxml x.rst
reports "Unknown target name: \"cur\"" once, and vc_cursor_start and
vc_cursor_end do the same; after it, none of the three reports anything.
kernel-doc -none on the file is silent both ways.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
drivers/tty/vt/vt.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 6a6eb8b2a6de..14b7214ec105 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -273,9 +273,9 @@ EXPORT_SYMBOL_GPL(vc_font_size);
* vc_cursor_valid_size - Computes a valid cursor size from the given value
* @cursor_size: The size constant of cursor pattern
*
- * The argument given in @cursor_size is one of the CUR_ constants, as stored
- * in struct @vc_data.vc_cursor_type. For unknown values, the helper draws the
- * default cursor or an underline dash.
+ * The argument given in @cursor_size is one of the ``CUR_`` constants, as
+ * stored in struct @vc_data.vc_cursor_type. For unknown values, the helper
+ * draws the default cursor or an underline dash.
*
* Returns:
* A valid cursor size for the given size value
@@ -317,7 +317,7 @@ EXPORT_SYMBOL_GPL(vc_cursor_valid_size);
*
* The parameter @cell_height is the height of the character cell as
* displayed by the console. The argument given in @cursor_size is one
- * of the CUR_ constants. See vc_cursor_valid_size() for how to get a
+ * of the ``CUR_`` constants. See vc_cursor_valid_size() for how to get a
* valid cursor-size constant.
*
* Returns:
@@ -353,7 +353,7 @@ EXPORT_SYMBOL_GPL(vc_cursor_start);
*
* The parameter @cell_height is the height of the character cell as
* displayed by the console. The argument given in @cursor_size is one
- * of the CUR_ constants. See vc_cursor_valid_size() for how to get a
+ * of the ``CUR_`` constants. See vc_cursor_valid_size() for how to get a
* valid cursor-size constant.
*
* Returns:
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 18:29 [PATCH] vt: Escape the CUR_ prefix in the cursor kernel-doc TAKANO Mitsuhiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®