summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dml
diff options
context:
space:
mode:
authorLeo Li2019-03-28 17:14:05 +0100
committerAlex Deucher2019-06-22 16:34:09 +0200
commit10b3aa5eb1ea2fc810d2b7fc1947c8f0f8ddf55a (patch)
tree071a5af331dcda0c1e66401f14678a7ae60da36e /drivers/gpu/drm/amd/display/dc/dml
parentdrm/amd/display: Add 3dlut control flags (diff)
downloadkernel-qcow2-linux-10b3aa5eb1ea2fc810d2b7fc1947c8f0f8ddf55a.tar.gz
kernel-qcow2-linux-10b3aa5eb1ea2fc810d2b7fc1947c8f0f8ddf55a.tar.xz
kernel-qcow2-linux-10b3aa5eb1ea2fc810d2b7fc1947c8f0f8ddf55a.zip
drm/amd/display: Guard DML_FAIL_DSC_VALIDATION_FAILURE
[Why] Usage of this enum is DSC-only. [How] Guard it with CONFIG_DRM_AMD_DC_DSC_SUPPORT. Signed-off-by: Leo Li <sunpeng.li@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h b/drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h
index e8da21f04454..2a65af31eaa9 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h
+++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h
@@ -130,7 +130,9 @@ enum dm_validation_status {
DML_FAIL_DIO_SUPPORT,
DML_FAIL_NOT_ENOUGH_DSC,
DML_FAIL_DSC_CLK_REQUIRED,
+#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
DML_FAIL_DSC_VALIDATION_FAILURE,
+#endif
DML_FAIL_URGENT_LATENCY,
DML_FAIL_REORDERING_BUFFER,
DML_FAIL_DISPCLK_DPPCLK,