Re: [PATCH] vt: Escape the CUR_ prefix in the cursor kernel-doc

From: Jiri Slaby

Date: Thu Nov 26 2026 - 01:57:39 EST


On 25. 11. 26, 19:29, TAKANO Mitsuhiro wrote:
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"

I believe fixed by Randy at:
https://lore.kernel.org/all/20261104182258.3226665-1-rdunlap@xxxxxxxxxxxxx/

Not applied yet, though.

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.
thanks,
--
js
suse labs