Re: [REGRESSION] Unexpected section title false positive warnings on DOC: directive

From
Randy Dunlap <rdunlap@infradead.org>
Date
2026-01-08 00:21:41
Also in
lkml, regressions
Reply to
Bagas Sanjaya, 2026-01-07

On 1/7/26 3:46 PM, Bagas Sanjaya wrote:
On Wed, Jan 07, 2026 at 10:19:32AM -0800, Randy Dunlap wrote:
quoted

On 1/7/26 5:08 AM, Bagas Sanjaya wrote:
quoted
On Tue, Jan 06, 2026 at 02:58:43PM -0700, Jonathan Corbet wrote:
quoted
Bagas Sanjaya [off-list ref] writes:
quoted
Hi,

Building htmldocs on docs-next currenly produces about 50 new warnings; which
all of them are unexpected section title on DOC: kernel-doc directive, like:

/home/bagas/repo/linux-kernel/Documentation/driver-api/target:25: ./drivers/target/target_core_user.c:35: CRITICAL: Unexpected section title.

Userspace I/O
------------- [docutils]
WARNING: kernel-doc 'scripts/kernel-doc.py -rst -enable-lineno -function 'Userspace I/O' ./drivers/target/target_core_user.c' processing failed with: SystemMessage('/home/bagas/repo/linux-kernel/Documentation/driver-api/target:25: ./drivers/target/target_core_user.c:35: (SEVERE/4) Unexpected section title.\n\nUserspace I/O\n-------------')
/home/bagas/repo/linux-kernel/Documentation/driver-api/target:28: ./include/uapi/linux/target_core_user.h:14: CRITICAL: Unexpected section title.
So I did not, and do not, see any of these errors; are you doing
something special to get them?
Nope.

I'm running my htmldocs builds on my Arch Linux system (with Sphinx 9.0.4 and
Python 3.13.11).

Full log (tarred up) attached.

Thanks.
Hi,
What docutils version, please?
Mine have:

docutils (Docutils 0.21.2, Python 3.13.11, on linux)
I'm using docutils-3.13 (Docutils 0.22.3, Python 3.13.11, on linux)
and I don't see these warnings.
Maybe it's something that has been fixed between 0.21.2 and 0.22.3... ?

-- 
~Randy
Thread (9 messages) 9 messages, 3 authors, last reply 2026-01-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help