drm/amd/display: avoid stringop-overflow warnings for dp_decide_lane_settings()
authorjsg <jsg@openbsd.org>
Mon, 29 Jan 2024 01:53:19 +0000 (01:53 +0000)
committerjsg <jsg@openbsd.org>
Mon, 29 Jan 2024 01:53:19 +0000 (01:53 +0000)
From Arnd Bergmann
ecfaeb66b1f08c72fe8e8d1df955cf2879d7333b in linux-6.6.y/6.6.14
c966dc0e9d96dc44423c404a2628236f1200c24e in mainline linux

sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.c
sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_training.h

index ba93e79..f575faf 100644 (file)
@@ -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;
 
index 91ecdeb..80b2b36 100644 (file)
@@ -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);