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@gmail.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