Skip to contentSkip to conversation

docs: fix doc warning for DC_HDCP_LC_ENABLE_SW_FALLBACK in amd_shared.h

PATCH In review Rahul Kumar 2 participants 2 messages May 14, 2025 – May 15, 2025

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

PATCH 1/1 docs: fix doc warning for DC_HDCP_LC_ENABLE_SW_FALLBACK in amd_shared.h

Fixes a kernel-doc warning by correctly documenting the enum value DC_HDCP_LC_ENABLE_SW_FALLBACK in the DC_DEBUG_MASK enum.

The previous documentation was incorrectly formatted and incomplete. Updated to follow proper kernel-doc syntax with a full description.

Verified fix using make htmldocs, and the warning is no longer present.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/include/amd_shared.h +1 -1
index 4c95b885d1d0..ebe0caf1fda4 100644
@@ -366,7 +366,7 @@ enum DC_DEBUG_MASK {
 	DC_HDCP_LC_FORCE_FW_ENABLE = 0x80000,
 
 	/**
-	 * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW
+	 * @DC_HDCP_LC_ENABLE_SW_FALLBACK: Enables software fallback for HDCP locality check if the firmware fails.
 	 * path failure, retry using legacy SW path.
 	 */
 	DC_HDCP_LC_ENABLE_SW_FALLBACK = 0x100000,
Signature · 1 line
2.43.0
#1 lore raw
Quoted 10 lines · Rahul Kumar

Fixes a kernel-doc warning by correctly documenting the enum value DC_HDCP_LC_ENABLE_SW_FALLBACK in the DC_DEBUG_MASK enum.

The previous documentation was incorrectly formatted and incomplete. Updated to follow proper kernel-doc syntax with a full description.

Verified fix using make htmldocs, and the warning is no longer present.

Thanks for the patch. This is already fixed.

Alex

Quoted 20 lines
---
 drivers/gpu/drm/amd/include/amd_shared.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/include/amd_shared.h +1 -2
index 4c95b885d1d0..ebe0caf1fda4 100644
@@ -366,7 +366,7 @@ enum DC_DEBUG_MASK {
        DC_HDCP_LC_FORCE_FW_ENABLE = 0x80000,
 
        /**
-        * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW
+        * @DC_HDCP_LC_ENABLE_SW_FALLBACK: Enables software fallback for HDCP locality check if the firmware fails.
         * path failure, retry using legacy SW path.
         */
        DC_HDCP_LC_ENABLE_SW_FALLBACK = 0x100000,
--

2.43.0