Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Arnd Bergmann and committed by
Jani Nikula
b63c6b9b e5b3fe57

+2 -1
+2 -1
drivers/gpu/drm/i915/i915_initial_plane.c
··· 115 115 * important and we should probably use that space with FBC or other 116 116 * features. 117 117 */ 118 - if (IS_ENABLED(CONFIG_FRAMEBUFFER_CONSOLE) && 118 + if (IS_ENABLED(CONFIG_DRM_FBDEV_EMULATION) && 119 + IS_ENABLED(CONFIG_FRAMEBUFFER_CONSOLE) && 119 120 mem == i915->mm.stolen_region && 120 121 !intel_fbdev_fb_prefer_stolen(&i915->drm, size)) { 121 122 drm_dbg_kms(&i915->drm, "Initial FB size exceeds half of stolen, discarding\n");