Message ID | 20240317163615.563428-1-linux@roeck-us.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/sun4i: Drop COMPILE_TEST | expand |
diff --git a/drivers/gpu/drm/sun4i/Kconfig b/drivers/gpu/drm/sun4i/Kconfig index 4741d9f6544c..015539bfda2a 100644 --- a/drivers/gpu/drm/sun4i/Kconfig +++ b/drivers/gpu/drm/sun4i/Kconfig @@ -2,7 +2,7 @@ config DRM_SUN4I tristate "DRM Support for Allwinner A10 Display Engine" depends on DRM && COMMON_CLK - depends on ARCH_SUNXI || COMPILE_TEST + depends on ARCH_SUNXI select DRM_GEM_DMA_HELPER select DRM_KMS_HELPER select DRM_PANEL
Attempts to build the sun4i drm code on various architectures using gcc 11.x or older fails with ERROR: modpost: "__udivdi3" [drivers/gpu/drm/sun4i/sun4i-drm-hdmi.ko] undefined! This is due to commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") which introduces a constant 64-bit divide operation. Some compilers / compiler versions fail to translate this operation into fixed code. Manual exclusion lists such as "Only build test this code on this subset of architectures" or "Do not test this code on this set of architectures" do not scale. Remove COMPILE_TEST support for the suni4 drm driver instead to ensure that test builds are only performed on supported architectures. Fixes: 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") Signed-off-by: Guenter Roeck <linux@roeck-us.net> --- drivers/gpu/drm/sun4i/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)