From: Nicholas Kazlauskas Date: Wed, 3 Jun 2020 13:32:10 +0000 (-0400) Subject: drm/amd/display: Only actually breakpoint if DEBUG_KERNEL_DC is enabled X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f86c9b8b56a74b2d0d3543339b2ac52b75b2237e;p=linux.git drm/amd/display: Only actually breakpoint if DEBUG_KERNEL_DC is enabled To match previous behavior and to not hang the kernel if someone accidentally builds with KGDB enabled. Fixes: 1aad7078191116f ("drm/amd/display: Make BREAK_TO_DEBUGGER() a debug print") Signed-off-by: Nicholas Kazlauskas Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/os_types.h b/drivers/gpu/drm/amd/display/dc/os_types.h index 604ceb6c03756..c3bbfe397e8df 100644 --- a/drivers/gpu/drm/amd/display/dc/os_types.h +++ b/drivers/gpu/drm/amd/display/dc/os_types.h @@ -111,7 +111,7 @@ #define ASSERT(expr) WARN_ON_ONCE(!(expr)) #endif -#if defined(CONFIG_HAVE_KGDB) || defined(CONFIG_KGDB) +#if defined(CONFIG_DEBUG_KERNEL_DC) && (defined(CONFIG_HAVE_KGDB) || defined(CONFIG_KGDB)) #define BREAK_TO_DEBUGGER() \ do { \ DRM_DEBUG_DRIVER("%s():%d\n", __func__, __LINE__); \