]> git.itanic.dy.fi Git - linux-stable/commit
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>
Thu, 2 Mar 2023 03:45:08 +0000 (22:45 -0500)
commit6bb811d0ee3e1fe9f22a028c89b3472c999b70bc
tree84c2868e9708c27e5b5253c41f29888dfc9f10c5
parenta8af68f79d149796609a679b00a34762249c6a5b
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