drm/amd: fix compilation issue with legacy gcc
authorbobzhou <bob.zhou@amd.com>
Wed, 15 Mar 2023 07:23:48 +0000 (15:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Mar 2023 22:45:27 +0000 (18:45 -0400)
commit0bad3200dffa26943ce2b561e5446cc3ac018bc9
tree0ba50c1d2813a1b175f3c38164ca6016bd87038a
parent4489f0fd9e01efac81d98884d5cf3fa708b9daac
drm/amd: fix compilation issue with legacy gcc

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 <bob.zhou@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c