]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix a compiling error in old kernels
authorAsher Song <Asher.Song@amd.com>
Tue, 27 Sep 2022 07:22:53 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:46 +0000 (09:41 -0400)
commit0ce3019ce486caa605605ad5eeaba669bd25d91d
tree352ab6e7d5689d6d626b873a6e63b453a765d1ab
parentae82cd8b909dd695d32935676dc561d83d42d452
drm/amdgpu: fix a compiling error in old kernels

This patch is used to fix following compiling error that occurs in
some old kernels.

 error: ‘for’ loop initial declarations are only allowed in C99 mode
    for (int i = 0; i < dc->res_pool->res_cap->num_dsc; i++) {

Signed-off-by: Asher Song <Asher.Song@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c