Re: [RFC PATCH v7 24/26] docs: Document userland uAPI
From: bot+bpf-ci
Date: Sun Nov 22 2026 - 15:09:22 EST
> docs: Document userland uAPI
TL;DR: Docs nit: the sys_userns_set_idmap() kernel-doc @size text may render
with stray raw backticks around PAGE_SIZE; rewording the source comment would
avoid it.
> diff --git a/Documentation/userspace-api/userland.rst b/Documentation/userspace-api/userland.rst
> new file mode 100644
> index 000000000000..e32ea3501472
> --- /dev/null
> +++ b/Documentation/userspace-api/userland.rst
[ ... ]
> +User namespace ID mapping
> +=========================
> +
> +.. kernel-doc:: include/uapi/linux/nsfs.h
> + :identifiers: userns_idmap_extent userns_flags userns_idmap
> +
> +.. kernel-doc:: kernel/user_namespace.c
> + :identifiers: sys_userns_set_idmap
Will the kernel-doc for sys_userns_set_idmap() render correctly here?
The @size description in kernel/user_namespace.c reads:
@size: Size of @map structure in bytes (%USERNS_IDMAP_SIZE_VER0..%PAGE_SIZE)
and kernel-doc turns this into:
Size of **map** structure in bytes (``USERNS_IDMAP_SIZE_VER0``..``PAGE_SIZE``)
Because the second inline literal follows a '.', docutils does not
treat the opening double backtick as a start-string, so the built page
would show raw backticks around PAGE_SIZE. Sphinx does not warn about
this.
Would rewording the source comment avoid it, for example
"(%USERNS_IDMAP_SIZE_VER0 to %PAGE_SIZE)" or "between
%USERNS_IDMAP_SIZE_VER0 and %PAGE_SIZE"?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/45063222848