From: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com>
To: airlied@gmail.com, simona@ffwll.ch,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, corbet@lwn.net
Cc: dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, kevinpaul468@gmail.com
Subject: [PATCH] workaround for Sphinx false positive preventing index
Date: Fri, 27 Jun 2025 12:46:28 +0530 [thread overview]
Message-ID: <20250627071628.30258-1-kevinpaul468@gmail.com> (raw)
Functions drm_format_info, drm_modeset_lock, drm_ioctl_flags are not being
indexed in the documentation because there are structs with the same name
and sphinx is only indexing one of them, Added them to namespaces as a
workaround for suppressing the warnings and indexing the functions
Signed-off-by: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com>
---
Documentation/gpu/drm-kms.rst | 2 ++
Documentation/gpu/drm-uapi.rst | 1 +
2 files changed, 3 insertions(+)
diff --git a/Documentation/gpu/drm-kms.rst b/Documentation/gpu/drm-kms.rst
index abfe220764e1..da865ba1c014 100644
--- a/Documentation/gpu/drm-kms.rst
+++ b/Documentation/gpu/drm-kms.rst
@@ -357,6 +357,7 @@ Format Functions Reference
.. kernel-doc:: include/drm/drm_fourcc.h
:internal:
+.. c:namespace:: gpu_drm_fourcc
.. kernel-doc:: drivers/gpu/drm/drm_fourcc.c
:export:
@@ -473,6 +474,7 @@ KMS Locking
.. kernel-doc:: include/drm/drm_modeset_lock.h
:internal:
+.. c:namespace:: gpu_drm_modeset_lock
.. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
:export:
diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.rst
index 69f72e71a96e..37a2bc461326 100644
--- a/Documentation/gpu/drm-uapi.rst
+++ b/Documentation/gpu/drm-uapi.rst
@@ -554,6 +554,7 @@ DRM specific patterns. Note that ENOTTY has the slightly unintuitive meaning of
.. kernel-doc:: include/drm/drm_ioctl.h
:internal:
+.. c:namespace:: gpu_drm
.. kernel-doc:: drivers/gpu/drm/drm_ioctl.c
:export:
--
2.39.5
next reply other threads:[~2025-06-27 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 7:16 Kevin Paul Reddy Janagari [this message]
2025-06-27 9:00 ` [PATCH] workaround for Sphinx false positive preventing index Jani Nikula
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=20250627071628.30258-1-kevinpaul468@gmail.com \
--to=kevinpaul468@gmail.com \
--cc=airlied@gmail.com \
--cc=corbet@lwn.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).