[PATCH] drm/amdgpu/vcn: fix compilation issue with legacy gcc

2023-02-22 Thread bobzhou
This patch is used to fix following compilation issue with legacy gcc error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < adev->vcn.num_vcn_inst; ++i) { Signed-off-by: bobzhou --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 3 ++- 1 file chan

[PATCH] drm/amdgpu: remove unused variable

2023-03-01 Thread bobzhou
building with gcc and W=1 reports drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:7292:11: error: unused variable 'tmp' [-Werror=unused-variable] uint32_t tmp; ^~~ tmp is not used so remove it. Signed-off-by: bobzhou --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 1 - 1 file

[PATCH] drm/amd: fix compilation issue with legacy gcc

2023-03-15 Thread bobzhou
This patch is used to fix following compilation issue with legacy gcc error: ‘for’ loop initial declarations are only allowed in C99 mode Signed-off-by: bobzhou --- .../drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c | 9 ++--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

[PATCH] drm/amd/display: fix compilation issue with legacy gcc

2022-11-17 Thread bobzhou
From: Bob zhou This patch is used to fix following compilation issue with legacy gcc error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = flag_vlevel; i < context->bw_ctx.dml.soc.num_states; i++) { Signed-off-by: Bob zhou --- drivers/gpu/drm/amd/dis