drm/amd/display: Guard DML_FAIL_DSC_VALIDATION_FAILURE
authorLeo Li <sunpeng.li@amd.com>
Thu, 28 Mar 2019 16:14:05 +0000 (12:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:09 +0000 (09:34 -0500)
[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>
drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h

index e8da21f044546a4cc77048bfc3e48b636a34d2c0..2a65af31eaa996fc4356729029462204ef9e1efc 100644 (file)
@@ -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,