Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation/amdgpu: Fix duplicate declaration

Address the below kernel doc warning:

Documentation/gpu/amdgpu/display/display-manager:134:
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:3: WARNING: Duplicate C
declaration, also defined at gpu/amdgpu/display/dcn-blocks:101.
Declaration is '.. c:struct:: mpcc_blnd_cfg'.
Documentation/gpu/amdgpu/display/display-manager:146:
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h:3: WARNING: Duplicate C
declaration, also defined at gpu/amdgpu/display/dcn-blocks:3.
Declaration is '.. c:enum:: mpcc_alpha_blend_mode'.

To address the above warnings, this commit uses the 'no-identifiers'
option in the dcn-blocks to avoid duplication with the previous use of
this function doc in the display-manager file. Finally, replaces the
deprecated ':function:' in favor of ':identifiers:'.

Cc: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rodrigo Siqueira and committed by
Alex Deucher
4b0eb9ce 91ca34cb

+3 -2
+1
Documentation/gpu/amdgpu/display/dcn-blocks.rst
··· 34 34 35 35 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h 36 36 :internal: 37 + :no-identifiers: mpcc_blnd_cfg mpcc_alpha_blend_mode 37 38 38 39 OPP 39 40 ---
+2 -2
Documentation/gpu/amdgpu/display/display-manager.rst
··· 132 132 (MPC), as follows: 133 133 134 134 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h 135 - :functions: mpcc_blnd_cfg 135 + :identifiers: mpcc_blnd_cfg 136 136 137 137 Therefore, the blending configuration for a single MPCC instance on the MPC 138 138 tree is defined by :c:type:`mpcc_blnd_cfg`, where ··· 144 144 :c:type:`MPCC_ALPHA_BLND_MODE`, as described below. 145 145 146 146 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h 147 - :functions: mpcc_alpha_blend_mode 147 + :identifiers: mpcc_alpha_blend_mode 148 148 149 149 DM then maps the elements of `enum mpcc_alpha_blend_mode` to those in the DRM 150 150 blend formula, as follows: