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
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
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
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