sparc: Fix undefined reference to fb_is_primary_device
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 20 Feb 2024 09:54:12 +0000 (10:54 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 21 Feb 2024 13:08:41 +0000 (14:08 +0100)
commited683b9bb91fc274383e222ba5873a9ee9033462
tree40d96eb51e9f5863841c5dfbced4cf443f7a10da
parenteb0d253ff9c74dee30aa92fe460b825eb28acd73
sparc: Fix undefined reference to fb_is_primary_device

Commit 55bffc8170bb ("fbdev: Split frame buffer support in FB and FB_CORE
symbols") added a new FB_CORE Kconfig symbol, that can be enabled to only
have fbcon/VT and DRM fbdev emulation, but without support for any legacy
fbdev driver.

Unfortunately, it missed to change the CONFIG_FB in arch/sparc makefiles,
which leads to the following linking error in some sparc64 configurations:

   sparc64-linux-ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_fb_registered':
>> fbcon.c:(.text+0x4f60): undefined reference to `fb_is_primary_device'

Fixes: 55bffc8170bb ("fbdev: Split frame buffer support in FB and FB_CORE symbols")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202401290306.IV8rhJ02-lkp@intel.com/
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: <stable@vger.kernel.org> # v6.6+
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240220095428.3341195-1-javierm@redhat.com
arch/sparc/Makefile
arch/sparc/video/Makefile