aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch
new file mode 100644
index 00000000..bd59e311
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0513-drm-amd-display-Include-local-vars-in-DCN-guard.patch
@@ -0,0 +1,32 @@
+From 46b8587adcacfa5d27b6be7fb091e7f4efdffdd0 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Tue, 13 Jun 2017 18:26:40 -0400
+Subject: [PATCH 0513/4131] drm/amd/display: Include local vars in DCN guard
+
+We don't want warnings
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_debug.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
+index 58402051..ad556e9 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
+@@ -326,10 +326,10 @@ void context_clock_trace(
+ const struct dc *dc,
+ struct validate_context *context)
+ {
++#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+ struct core_dc *core_dc = DC_TO_CORE(dc);
+ struct dal_logger *logger = core_dc->ctx->logger;
+
+-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
+ CLOCK_TRACE("Current: dispclk_khz:%d dppclk_div:%d dcfclk_khz:%d\n"
+ "dcfclk_deep_sleep_khz:%d fclk_khz:%d\n"
+ "dram_ccm_us:%d min_active_dram_ccm_us:%d\n",
+--
+2.7.4
+