From 482c569e341a894c4983d8fdceee09b52d01a1e2 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 29 Jan 2024 01:53:19 +0000 Subject: [PATCH] drm/amd/display: avoid stringop-overflow warnings for dp_decide_lane_settings() From Arnd Bergmann ecfaeb66b1f08c72fe8e8d1df955cf2879d7333b in linux-6.6.y/6.6.14 c966dc0e9d96dc44423c404a2628236f1200c24e in mainline linux --- .../pci/drm/amd/display/dc/link/protocols/link_dp_training.c | 2 +- .../pci/drm/amd/display/dc/link/protocols/link_dp_training.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c index ba93e795076..f575fafc7f8 100644 --- a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c +++ b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c @@ -807,7 +807,7 @@ void dp_decide_lane_settings( const struct link_training_settings *lt_settings, const union lane_adjust ln_adjust[LANE_COUNT_DP_MAX], struct dc_lane_settings hw_lane_settings[LANE_COUNT_DP_MAX], - union dpcd_training_lane dpcd_lane_settings[LANE_COUNT_DP_MAX]) + union dpcd_training_lane *dpcd_lane_settings) { uint32_t lane; diff --git a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h index 91ecdeba0bf..80b2b36efcc 100644 --- a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h +++ b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h @@ -111,7 +111,7 @@ void dp_decide_lane_settings( const struct link_training_settings *lt_settings, const union lane_adjust ln_adjust[LANE_COUNT_DP_MAX], struct dc_lane_settings hw_lane_settings[LANE_COUNT_DP_MAX], - union dpcd_training_lane dpcd_lane_settings[LANE_COUNT_DP_MAX]); + union dpcd_training_lane *dpcd_lane_settings); enum dc_dp_training_pattern decide_cr_training_pattern( const struct dc_link_settings *link_settings); -- 2.20.1