Re: [PATCH] drm/amdgpu: fix a compiling error in old kernels

2022-09-26 Thread Christian König
Am 27.09.22 um 05:37 schrieb Asher Song: 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 Reviewed-b

RE: [PATCH] drm/amdgpu: fix a compiling error in old kernels

2022-09-26 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Song, Asher Sent: Tuesday, September 27, 2022 11:38 AM To: Chen, Guchun ; Cui, Flora ; Shi, Leslie ; Ma, Jun ; amd-gfx@lists.freedesktop.org Cc: Song, Asher Subject: [PATCH] drm/amdgpu: fix a compiling error in old

[PATCH] drm/amdgpu: fix a compiling error in old kernels

2022-09-26 Thread Asher Song
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 --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c

Re: [PATCH] drm/amdgpu: fix a compiling error

2022-09-26 Thread Christian König
Am 26.09.22 um 11:22 schrieb Asher Song: The patch fix following compiling error: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < dc->res_pool->res_cap->num_dsc; i++) { Newer kernels are compiled in C99 mode, so this in now legal. We should probably

[PATCH] drm/amdgpu: fix a compiling error

2022-09-26 Thread Asher Song
The patch fix following compiling error: 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 --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2