summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml/calcs
diff options
context:
space:
mode:
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>2026-03-09 17:18:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-03-30 15:12:15 -0400
commitf82480fafedf622541276d48a3b4fed20ce5d866 (patch)
treeec3c9484f50018d2158f74fcc47b1c1b75c4844c /drivers/gpu/drm/amd/display/dc/dml/calcs
parent32c1c35b6d8bd8b7ea9ab3d1454b56b605f17dd1 (diff)
downloadlwn-f82480fafedf622541276d48a3b4fed20ce5d866.tar.gz
lwn-f82480fafedf622541276d48a3b4fed20ce5d866.zip
drm/amd/display: Fixed Silence complier warnings in dc
[Why] Resolve compiler warnings by marking unused parameters explicitly. [How] In .c and .h function definitions, keep parameter names in signatures and add a line with `(void)param;` in function body Preserved function signatures and avoids breaking code paths that may reference the parameter under conditional compilation. Reviewed-by: Dillon Varone <dillon.varone@amd.com> Reviewed-by: Austin Zheng <austin.zheng@amd.com> Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com> Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/calcs')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c b/drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
index 74962791302f..61553e24d53e 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
@@ -525,6 +525,7 @@ static void split_stream_across_pipes(
struct pipe_ctx *primary_pipe,
struct pipe_ctx *secondary_pipe)
{
+ (void)res_ctx;
int pipe_idx = secondary_pipe->pipe_idx;
if (!primary_pipe->plane_state)