docs: conf.py: Ignore __counted_by attribute
authorKees Cook <keescook@chromium.org>
Fri, 15 Dec 2023 00:13:54 +0000 (16:13 -0800)
committerJonathan Corbet <corbet@lwn.net>
Fri, 15 Dec 2023 16:31:19 +0000 (09:31 -0700)
It seems that Sphinx is confused by the __counted_by attribute on struct
members. Add it to the list of known attributes.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312150614.kOx8xUkr-lkp@intel.com/
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: linux-doc@vger.kernel.org
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20231215001347.work.151-kees@kernel.org
Documentation/conf.py

index 3a1a804c3a13d294e9fe59f06cd3ad62986147ad..a3d1fe9dfcf92081e0d75b67f4b35a5f3a839f60 100644 (file)
@@ -106,6 +106,7 @@ if major >= 3:
             "__weak",
             "noinline",
             "__fix_address",
+            "__counted_by",
 
             # include/linux/memblock.h:
             "__init_memblock",