drm/amdgpu/vcn: fix compilation issue with legacy gcc
authorbobzhou <bob.zhou@amd.com>
Mon, 27 Feb 2023 07:30:54 +0000 (15:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:44 +0000 (14:30 -0500)
commite68d1e074d5e94b609de01a3ad3287d3d17721f2
tree6be27ab1f7550e0b166e57884c3b8cbddde84ecf
parentfd234e7581162573742dfb8cc4dc0af3d3148138
drm/amdgpu/vcn: 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
for (int i = 0; i < adev->vcn.num_vcn_inst; ++i) {

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/amdgpu/vcn_v4_0.c