]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: vivid: fix FB dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 21:38:55 +0000 (22:38 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 7 Apr 2025 06:10:38 +0000 (08:10 +0200)
It's not enough to have a dependency on CONFIG_FB, as that can be in
a loadable module when vivid itself is builtin:

drivers/media/test-drivers/vivid/vivid-osd.o: in function `vivid_fb_init':
vivid-osd.c:(.text+0xdc0): undefined reference to `fb_alloc_cmap'
vivid-osd.c:(.text+0xe26): undefined reference to `register_framebuffer'

Change the dependency to only allow configurations that can be built,
but change the FB to FB_CORE so this is also possible when using
DRM with FB compatibility rather than full fbdev.

Fixes: 20889ddede38 ("media: vivid: Introduce VIDEO_VIVID_OSD")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/test-drivers/vivid/Kconfig

index e95edc0f22bfb97099f6fdea97402fc8a190f11f..cc470070a7a5ea7245632206f2bc2ddac2bc53f3 100644 (file)
@@ -32,7 +32,8 @@ config VIDEO_VIVID_CEC
 
 config VIDEO_VIVID_OSD
        bool "Enable Framebuffer for testing Output Overlay"
-       depends on VIDEO_VIVID && FB
+       depends on VIDEO_VIVID && FB_CORE
+       depends on VIDEO_VIVID=m || FB_CORE=y
        default y
        select FB_IOMEM_HELPERS
        help