mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: TAKANO Mitsuhiro <takano32@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
	TAKANO Mitsuhiro <takano32@gmail.com>
Subject: [PATCH] vt: Escape the CUR_ prefix in the cursor kernel-doc
Date: Wed, 25 Nov 2026 18:29:03 +0000	[thread overview]
Message-ID: <20261125182903.2396749-1-takano32@gmail.com> (raw)

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


                 reply	other threads:[~2026-11-25 18:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125182903.2396749-1-takano32@gmail.com \
    --to=takano32@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®