[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251006120010.17976-1-swarajgaikwad1925@gmail.com>
Date: Mon, 6 Oct 2025 12:00:09 +0000
From: Swaraj Gaikwad <swarajgaikwad1925@...il.com>
To: David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Jonathan Corbet <corbet@....net>,
dri-devel@...ts.freedesktop.org (open list:DRM DRIVERS),
linux-doc@...r.kernel.org (open list:DOCUMENTATION),
linux-kernel@...r.kernel.org (open list)
Cc: skhan@...uxfoundation.org,
david.hunter.linux@...il.com,
Swaraj Gaikwad <swarajgaikwad1925@...il.com>
Subject: [PATCH] Documentation/gpu: Remove duplicate kernel-doc exports in drm-uapi.rst
Eliminate redundant `:export:` kernel-doc directive in
Documentation/gpu/drm-uapi.rst to fix duplicate C declaration warnings
during Sphinx builds.
warning before this patch:
WARNING: Duplicate C declaration, also defined at gpu/drm-kms:35
Declaration is '.. c:function:: const struct drm_format_info *
drm_format_info (u32 format)'. [duplicate_declaration.c]
The removed export was already documented elsewhere, so this patch
does not remove any meaningful documentation. Post-change, both
`make htmldocs` and targeted builds with `make htmldocs
SPHINXDIRS=Documentation/gpu`
complete cleanly without warnings.
Based on commit 47a8d4b89844
Signed-off-by: Swaraj Gaikwad <swarajgaikwad1925@...il.com>
---
Documentation/gpu/drm-uapi.rst | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.rst
index d98428a592f1..80cfd9b7c908 100644
--- a/Documentation/gpu/drm-uapi.rst
+++ b/Documentation/gpu/drm-uapi.rst
@@ -604,9 +604,6 @@ DRM specific patterns. Note that ENOTTY has the slightly unintuitive meaning of
.. kernel-doc:: include/drm/drm_ioctl.h
:internal:
-.. kernel-doc:: drivers/gpu/drm/drm_ioctl.c
- :export:
-
.. kernel-doc:: drivers/gpu/drm/drm_ioc32.c
:export:
@@ -761,4 +758,4 @@ Stable uAPI events
From ``drivers/gpu/drm/scheduler/gpu_scheduler_trace.h``
.. kernel-doc:: drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
- :doc: uAPI trace events
\ No newline at end of file
+ :doc: uAPI trace events
--
2.51.0
Powered by blists - more mailing lists