Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: clean-up dead code in dml2_mall_phantom

pipe_idx in funtion dml2_svp_validate_static_schedulabilit, although set
is never actually used. While building with GCC 16 this gives a warning:

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_mall_phantom.c: In function ‘set_phantom_stream_timing’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_mall_phantom.c:657:25: warning: variable ‘pipe_idx’ set but not used [-Wunused-but-set-variable=]
657 | unsigned int i, pipe_idx;
| ^~~~~~~~

Signed-off-by: Brahmajit Das <listout@listout.xyz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Brahmajit Das and committed by
Alex Deucher
f117eca9 863a1790

+2 -4
+2 -4
drivers/gpu/drm/amd/display/dc/dml2/dml2_mall_phantom.c
··· 654 654 unsigned int svp_height, 655 655 unsigned int svp_vstartup) 656 656 { 657 - unsigned int i, pipe_idx; 657 + unsigned int i; 658 658 double line_time, fp_and_sync_width_time; 659 659 struct pipe_ctx *pipe; 660 660 uint32_t phantom_vactive, phantom_bp, pstate_width_fw_delay_lines; 661 661 static const double cvt_rb_vblank_max = ((double) 460 / (1000 * 1000)); 662 662 663 663 // Find DML pipe index (pipe_idx) using dc_pipe_idx 664 - for (i = 0, pipe_idx = 0; i < ctx->config.dcn_pipe_count; i++) { 664 + for (i = 0; i < ctx->config.dcn_pipe_count; i++) { 665 665 pipe = &state->res_ctx.pipe_ctx[i]; 666 666 667 667 if (!pipe->stream) ··· 669 669 670 670 if (i == dc_pipe_idx) 671 671 break; 672 - 673 - pipe_idx++; 674 672 } 675 673 676 674 // Calculate lines required for pstate allow width and FW processing delays