]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/fbdev: fix link failure without FBDEV emulation
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Mar 2026 08:36:48 +0000 (09:36 +0100)
committerJani Nikula <jani.nikula@intel.com>
Wed, 18 Mar 2026 11:23:27 +0000 (13:23 +0200)
commitb63c6b9b7f5ed02bb3abf7a39c18ea54d1a69f0f
tree3c956dd76270713540f48cf4fdeebcac587bd869
parente5b3fe57dc5893c7ea5f478a1161b8643adf5dd9
drm/i915/fbdev: fix link failure without FBDEV emulation

If CONFIG_DRM_FBDEV_EMULATION is disabled but CONFIG_FRAMEBUFFER_CONSOLE
is turned on, the i915 driver now fails to link:

ERROR: modpost: "intel_fbdev_fb_prefer_stolen" [drivers/gpu/drm/i915/i915.ko] undefined!

Fix the contition to include a check for the symbol that controls compilation
of intel_fbdev_fb.c.

Fixes: 94c7d2861292 ("drm/i915/fbdev: Extract intel_fbdev_fb_prefer_stolen()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260304083701.724908-1-arnd@kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_initial_plane.c