drm/amd/display: fix compilation issue with legacy gcc
authorBob zhou <bobzhou2@amd.com>
Tue, 15 Nov 2022 04:21:47 +0000 (12:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2022 14:47:12 +0000 (09:47 -0500)
commitd0c2dd737bdea63c6c33be1436c63f12aaf87a5b
tree7448c80e19ff30b58d41b968e187968ca522cbf3
parent3d335a523b938a445a674be24d1dd5c7a4c86fb6
drm/amd/display: 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 = flag_vlevel; i < context->bw_ctx.dml.soc.num_states; i++) {

Signed-off-by: Bob zhou <bobzhou2@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c