drm/log: select CONFIG_FONT_SUPPORT
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Dec 2024 15:39:50 +0000 (16:39 +0100)
committerJocelyn Falempe <jfalempe@redhat.com>
Thu, 12 Dec 2024 17:26:32 +0000 (18:26 +0100)
Without fonts, this fails to link:

drivers/gpu/drm/clients/drm_log.o: in function `drm_log_init_client':
drm_log.c:(.text+0x3d4): undefined reference to `get_default_font'

Select this, like the other users do.

Fixes: f7b42442c4ac ("drm/log: Introduce a new boot logger to draw the kmsg on the screen")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241212154003.1313437-1-arnd@kernel.org
drivers/gpu/drm/clients/Kconfig
lib/fonts/Kconfig

index 82a7d4e584ddb6953cd975fc1d6a416987de56d8..6096c623d9d5b1a3d4a40d986c45aad2f8277767 100644 (file)
@@ -77,6 +77,7 @@ config DRM_CLIENT_LOG
        select DRM_CLIENT
        select DRM_CLIENT_SETUP
        select DRM_DRAW
+       select FONT_SUPPORT
        help
          This enable a drm logger, that will print the kernel messages to the
          screen until the userspace is ready to take over.
index 3ac26bdbc3ff01a33960684171cdfc2a79d42514..ae59b5b4e225e8e989af0feca3f73b09d778fc4e 100644 (file)
@@ -10,7 +10,7 @@ if FONT_SUPPORT
 
 config FONTS
        bool "Select compiled-in fonts"
-       depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC
+       depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE || DRM_PANIC || DRM_CLIENT_LOG
        help
          Say Y here if you would like to use fonts other than the default
          your frame buffer console usually use.