drm/amd/display: Drop config guard for DC_LOG_DP2
Subsystems (3)
PATCH 1/1 drm/amd/display: Drop config guard for DC_LOG_DP2
[Why & How]
It doesn't make sense to guard DC_LOG_DP2 by CONFIG_DRM_AMD_DCN, and this also caused build failure for allmodconfig; So drop the guard to fix the compile failure;
--- drivers/gpu/drm/amd/display/include/logger_types.h | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/display/include/logger_types.h +0 -4
@@ -72,9 +72,7 @@#define DC_LOG_DSC (...) DRM_DEBUG_KMS(__VA_ARGS__)#define DC_LOG_SMU (...) pr_debug("[SMU_MSG]:"__VA_ARGS__)#define DC_LOG_DWB (...) DRM_DEBUG_KMS(__VA_ARGS__) -#if defined(CONFIG_DRM_AMD_DC_DCN )#define DC_LOG_DP2 (...) DRM_DEBUG_KMS(__VA_ARGS__) -#endif struct dal_logger ;
@@ -126,9 +124,7 @@ enum dc_log_type {LOG_MAX_HW_POINTS ,LOG_ALL_TF_CHANNELS ,LOG_SAMPLE_1DLUT , -#if defined(CONFIG_DRM_AMD_DC_DCN)LOG_DP2 , -#endif LOG_SECTION_TOTAL_COUNT };
Signature · 1 line
2.17.1
Quoted 7 lines · Leo (Hanghong) Ma
[Why & How]
It doesn't make sense to guardDC_LOG_DP2byCONFIG_DRM_AMD_DCN, and this also caused build failure for allmodconfig; So drop the guard to fix the compile failure;Signed-off-by Leo (Hanghong) Ma <[email protected]>
At some point we may want to rework what the DC_LOG stuff maps too (e.g., use dev_debug or the newer drm interfaces).
Alex
Quoted 31 lines
--- drivers/gpu/drm/amd/display/include/logger_types.h | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/display/include/logger_types.h +0
-5@@ -72,9 +72,7 @@#define DC_LOG_DSC (...) DRM_DEBUG_KMS(__VA_ARGS__)#define DC_LOG_SMU (...) pr_debug("[SMU_MSG]:"__VA_ARGS__)#define DC_LOG_DWB (...) DRM_DEBUG_KMS(__VA_ARGS__) -#if defined(CONFIG_DRM_AMD_DC_DCN )#define DC_LOG_DP2 (...) DRM_DEBUG_KMS(__VA_ARGS__) -#endif struct dal_logger ;@@ -126,9 +124,7 @@ enum dc_log_type {LOG_MAX_HW_POINTS ,LOG_ALL_TF_CHANNELS ,LOG_SAMPLE_1DLUT , -#if defined(CONFIG_DRM_AMD_DC_DCN)LOG_DP2 , -#endif LOG_SECTION_TOTAL_COUNT }; --2.17.1
Ma, Leo
Reviewed-by Alex Deucher[AMD Official Use Only]
Agree.
Patch applied. Thanks for your review
-Leo
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, November 18, 2021 12:02 PM
To: Ma, Leo <[email protected]>
Cc: Kazlauskas, Nicholas <[email protected]>; amd-gfx list <[email protected]>; Deucher, Alexander <[email protected]>; Choi, Nicholas <[email protected]>; Wentland, Harry <[email protected]>
Subject: Re: [PATCH] drm/amd/display: Drop config guard for DC_LOG_DP2
Quoted 7 lines · Leo (Hanghong) Ma
[Why & How]
It doesn't make sense to guardDC_LOG_DP2byCONFIG_DRM_AMD_DCN, and this also caused build failure for allmodconfig; So drop the guard to fix the compile failure;Signed-off-by Leo (Hanghong) Ma <[email protected]>
At some point we may want to rework what the DC_LOG stuff maps too (e.g., use dev_debug or the newer drm interfaces).
Alex
Quoted 31 lines
--- drivers/gpu/drm/amd/display/include/logger_types.h | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/display/include/logger_types.h +0
-0@@ -72,9 +72,7 @@#define DC_LOG_DSC (...) DRM_DEBUG_KMS(__VA_ARGS__) #define
DC_LOG_SMU(...)pr_debug("[SMU_MSG]:"__VA_ARGS__)#defineDC_LOG_DWB(...)DRM_DEBUG_KMS(__VA_ARGS__)-#ifdefined(CONFIG_DRM_AMD_DC_DCN)#defineDC_LOG_DP2(...)DRM_DEBUG_KMS(__VA_ARGS__)-#endifstruct
dal_logger;drivers/gpu/drm/amd/display/include/logger_types.h +0
-3@@ -126,9 +124,7 @@ enum dc_log_type {LOG_MAX_HW_POINTS ,LOG_ALL_TF_CHANNELS ,LOG_SAMPLE_1DLUT , -#if defined(CONFIG_DRM_AMD_DC_DCN)LOG_DP2 , -#endif LOG_SECTION_TOTAL_COUNT }; --2.17.1