[PATCH 36/39] drm/amd/dal: fix warning in dc_link_dp_set_test_pattern

Harry Wentland harry.wentland at amd.com
Thu Nov 24 02:03:05 UTC 2016


From: Alex Deucher <alexander.deucher at amd.com>

Change-Id: I75cd9f310d5e0d1b1bea82165b1f2fdc70a08a94
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
index 2b0b23ac6cac..2585ec332e58 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
@@ -2309,6 +2309,7 @@ bool dc_link_dp_set_test_pattern(
 	unsigned char link_qual_pattern[LANE_COUNT_DP_MAX] = {0};
 	union dpcd_training_pattern training_pattern;
 	union test_response test_response;
+	enum dpcd_phy_test_patterns pattern;
 
 	memset(&training_pattern, 0, sizeof(training_pattern));
 	memset(&test_response, 0, sizeof(test_response));
@@ -2376,8 +2377,6 @@ bool dc_link_dp_set_test_pattern(
 						p_link_settings);
 		}
 
-		enum dpcd_phy_test_patterns pattern;
-
 		switch (test_pattern) {
 		case DP_TEST_PATTERN_VIDEO_MODE:
 			pattern = PHY_TEST_PATTERN_NONE;
-- 
2.10.1



More information about the amd-gfx mailing list