On 2024-11-10 21:46, Srinivasan Shanmugam wrote:
This patch adds the missing parameter descriptors to the functions
vcn_v2_5_ disable_clock_gating, _enable_clock_gating.

Fixes the below with gcc W=1:
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:616: warning: Function parameter or 
struct member 'inst' not described in 'vcn_v2_5_disable_clock_gating'
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:778: warning: Function parameter or 
struct member 'inst' not described in 'vcn_v2_5_enable_clock_gating'

Cc: Christian König<[email protected]>
Cc: Alex Deucher<[email protected]>
Signed-off-by: Srinivasan Shanmugam<[email protected]>


Reviewed-by: Boyuan Zhang <[email protected]> <mailto:[email protected]>


---
  drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 
b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
index da3d55cc3ac1..deec881f0687 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
@@ -609,6 +609,7 @@ static void vcn_v2_5_mc_resume_dpg_mode(struct 
amdgpu_device *adev, int inst_idx
   * vcn_v2_5_disable_clock_gating - disable VCN clock gating
   *
   * @adev: amdgpu_device pointer
+ * @inst: VCN instance index for which to disable clock gating
   *
   * Disable clock gating for VCN block
   */
@@ -771,6 +772,7 @@ static void vcn_v2_5_clock_gating_dpg_mode(struct 
amdgpu_device *adev,
   * vcn_v2_5_enable_clock_gating - enable VCN clock gating
   *
   * @adev: amdgpu_device pointer
+ * @inst: VCN instance index for which to enable clock gating
   *
   * Enable clock gating for VCN block
   */

Reply via email to