Skip to contentSkip to conversation

Fix duplicate C declaration warnings

PATCH In review Amogh Cheluvaraj 2 participants 3 messages Mar 21, 2024 – Mar 22, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix duplicate C declaration warnings

Fix the duplicate C declaration warnings found on
Documentation/gpu/drm-kms.rst that was found by
compiling htmldocs

---
 Documentation/gpu/drm-kms.rst | 6 ------
 1 file changed, 6 deletions(-)
Documentation/gpu/drm-kms.rst +0 -6
index 13d3627d8bc0..a4145f391e43 100644
@@ -357,9 +357,6 @@ Format Functions Reference
 .. kernel-doc:: include/drm/drm_fourcc.h
    :internal:
 
-.. kernel-doc:: drivers/gpu/drm/drm_fourcc.c
-   :export:
-
 .. _kms_dumb_buffer_objects:
 
 Dumb Buffer Objects
@@ -458,9 +455,6 @@ KMS Locking
 .. kernel-doc:: include/drm/drm_modeset_lock.h
    :internal:
 
-.. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
-   :export:
-
 KMS Properties
 ==============
 
Signature · 1 line
2.44.0
#1 lore raw
Quoted 3 lines · Amogh Cheluvaraj

Fix the duplicate C declaration warnings found on
Documentation/gpu/drm-kms.rst that was found by
compiling htmldocs

Please paste the warnings here.

BR,
Jani.

Quoted 29 lines
---
 Documentation/gpu/drm-kms.rst | 6 ------
 1 file changed, 6 deletions(-)
Documentation/gpu/drm-kms.rst +0 -6
index 13d3627d8bc0..a4145f391e43 100644
@@ -357,9 +357,6 @@ Format Functions Reference
 .. kernel-doc:: include/drm/drm_fourcc.h
    :internal:
 
-.. kernel-doc:: drivers/gpu/drm/drm_fourcc.c
-   :export:
-
 .. _kms_dumb_buffer_objects:
 
 Dumb Buffer Objects
@@ -458,9 +455,6 @@ KMS Locking
 .. kernel-doc:: include/drm/drm_modeset_lock.h
    :internal:
 
-.. kernel-doc:: drivers/gpu/drm/drm_modeset_lock.c
-   :export:
-
 KMS Properties
 ==============
Signature · 1 line
Jani Nikula, Intel
author
#2 lore raw
Quoted 5 lines · Jani Nikula

Please paste the warnings here.

BR,
Jani.

Here are the warnings I got:

/home/amogh/Linux_Kernel_Workspace/linux-next/Documentation/gpu/drm- kms:360: ./drivers/gpu/drm/drm_fourcc.c:344: WARNING: Duplicate C declaration, also defined at gpu/drm-kms:39.
Declaration is '.. c:function:: const struct drm_format_info * drm_format_info (u32 format)'. /home/amogh/Linux_Kernel_Workspace/linux-next/Documentation/gpu/drm- kms:461: ./drivers/gpu/drm/drm_modeset_lock.c:392: WARNING: Duplicate C declaration, also defined at gpu/drm-kms:49.
Declaration is '.. c:function:: int drm_modeset_lock (struct drm_modeset_lock *lock, struct drm_modeset_acquire_ctx *ctx)'.

With Regards,
Amogh