diff options
author | Asher Song <Asher.Song@amd.com> | 2022-09-27 15:22:53 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-09-29 09:41:46 -0400 |
commit | 9e447c811ab31cd69d8fff18283fb695e1ff59a5 (patch) | |
tree | 352ab6e7d5689d6d626b873a6e63b453a765d1ab /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | 940d4dd402e97941aa0a92436cc3d4c2d7c13157 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions