OSDN Git Service

drm/amd/display: Don't build DCN1 when kcov is enabled
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Thu, 16 Aug 2018 19:44:39 +0000 (15:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Aug 2018 19:33:59 +0000 (14:33 -0500)
commit9d1d02ff36783f954a206dfbf7943b7f2057f58b
tree1b043c55341c9f6b67d2464d455ad0c843568854
parentdc37a9a08d5760e405ffdd94ec6bbb6efededba6
drm/amd/display: Don't build DCN1 when kcov is enabled

DCN1 contains code that utilizes fp math. When
CONFIG_KCOV_INSTRUMENT_ALL and CONFIG_KCOV_ENABLE_COMPARISONS are
enabled, build errors are found. See this earlier patch for details:

https://lists.freedesktop.org/archives/dri-devel/2018-August/186131.html

As a short term solution, disable CONFIG_DRM_AMD_DC_DCN1_0 when
KCOV_INSTRUMENT_ALL and KCOV_ENABLE_COMPARISONS are enabled. In
addition, make it a fully derived config, taking into account
CONFIG_X86.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/Kconfig