]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: fix build failure with CONFIG_DRM_SUN8I_MIXER=m
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jul 2018 14:43:10 +0000 (16:43 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 12 Jul 2018 07:35:19 +0000 (09:35 +0200)
commit2b4219875c327e6bd827b70f8f03850c87556cbe
tree7090803321ef866a49d52acc62600c575036721d
parent8653f942faa1a5655d3018289cbf14e8064c260b
drm/sun4i: fix build failure with CONFIG_DRM_SUN8I_MIXER=m

Having DRM_SUN4I built-in but DRM_SUN8I_MIXER as a loadable module results in
a link error, as we try to access a symbol from the sun8i_tcon_top.ko module:

ERROR: "sun8i_tcon_top_of_table" [drivers/gpu/drm/sun4i/sun8i-drm-hdmi.ko] undefined!
ERROR: "sun8i_tcon_top_of_table" [drivers/gpu/drm/sun4i/sun4i-drm.ko] undefined!

This solves the problem by adding a silent symbol for the tcon_top module,
building it as a separate module in exactly the cases that we need it,
but in a way that it is reachable by the other modules.

Fixes: e631860d6f0a ("drm/sun4i: DW HDMI: Expand algorithm for possible crtcs")
Fixes: 2bb785fdb6cf ("drm/sun4i: Add support for traversing graph with TCON TOP")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180711144403.1022829-1-arnd@arndb.de
drivers/gpu/drm/sun4i/Kconfig
drivers/gpu/drm/sun4i/Makefile
drivers/gpu/drm/sun4i/sun4i_drv.c
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c