sparc: Fix undefined reference to fb_is_primary_device
PATCH 1/1 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 a CONFIG_FB in arch/sparc/Makefile and that leads to the following linking error in some sparc64 configurations:
sparc64-linux-ld: drivers/video/fbdev/core/fbcon.o: in function `fbcon_fb_registered':
Quoted 1 line
Quoted 1 line
fbcon.c:(.text+0x4f60): undefined reference to `fb_is_primary_device'
---
I don't have a sparc64 toolchain to test this patch, but I'm pretty sure that this is the correct fix for the linking error reported by the robot.
arch/sparc/video/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/video/Makefile +1 -1
@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_FB) += fbdev.o +obj-$(CONFIG_FB_CORE) += fbdev.o
Signature · 1 line
2.43.0
Am 20.02.24 um 01:34 schrieb Javier Martinez Canillas:
Quoted 8 lines
Commit
55bffc8170bb("fbdev: Split frame buffer support in FB andFB_COREsymbols") added a newFB_COREKconfigsymbol, 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 a
CONFIG_FBinarch/sparc/Makefileand that leads to the following linking error in some sparc64 configurations:
Quoted 6 lines
sparc64-linux-ld:
drivers/video/fbdev/core/fbcon.o: in function `fbcon_fb_registered':Quoted 1 line
Quoted 1 line
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 <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>
Quoted 17 lines
---
I don't have a sparc64 toolchain to test this patch, but I'm pretty sure that this is the correct fix for the linking error reported by the robot.
arch/sparc/video/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/sparc/video/Makefile +1
-1@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_FB) += fbdev.o +obj-$(CONFIG_FB_CORE) += fbdev.o
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Quoted 10 lines · Javier Martinez Canillas
Commit
55bffc8170bb("fbdev: Split frame buffer support in FB andFB_COREsymbols") added a newFB_COREKconfigsymbol, 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 a
CONFIG_FBinarch/sparc/Makefileand that leads to the following linking error in some sparc64 configurations:sparc64-linux-ld:
drivers/video/fbdev/core/fbcon.o: in function
`fbcon_fb_registered':
Quoted 7 lines
Quoted 1 line
Quoted 1 line
fbcon.c:(.text+0x4f60): undefined reference to `fb_is_primary_device'
Fixes 55bffc8170bb ("fbdev: Split frame buffer support in FB and
FB_COREsymbols")Reported-by kernel test robot <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>
Acked-by; Arnd Bergmann <[email protected]>
Hi
Am 20.02.24 um 01:34 schrieb Javier Martinez Canillas:
Quoted 14 lines
Commit
55bffc8170bb("fbdev: Split frame buffer support in FB andFB_COREsymbols") added a newFB_COREKconfigsymbol, 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 a
CONFIG_FBinarch/sparc/Makefileand that leads to the following linking error in some sparc64 configurations:sparc64-linux-ld:
drivers/video/fbdev/core/fbcon.o: in function `fbcon_fb_registered':Quoted 1 line
Quoted 1 line
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 <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>
Quoted 6 lines
---
I don't have a sparc64 toolchain to test this patch, but I'm pretty sure that this is the correct fix for the linking error reported by the robot.
arch/sparc/video/Makefile | 2 +-
I think you also have to fix arch/sparc/Makefile.
Best regards
Thomas
Quoted 11 lines
1 file changed, 1 insertion(+), 1 deletion(-)arch/sparc/video/Makefile +1
-1@@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_FB) += fbdev.o +obj-$(CONFIG_FB_CORE) += fbdev.o
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Thomas Zimmermann <[email protected]> writes:
Hello Thomas,
Quoted 19 lines
Hi
Am 20.02.24 um 01:34 schrieb Javier Martinez Canillas:
Quoted 16 lines
Commit
55bffc8170bb("fbdev: Split frame buffer support in FB andFB_COREsymbols") added a newFB_COREKconfigsymbol, 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 a
CONFIG_FBinarch/sparc/Makefileand that leads to the following linking error in some sparc64 configurations:sparc64-linux-ld:
drivers/video/fbdev/core/fbcon.o: in function `fbcon_fb_registered':Quoted 1 line
Quoted 1 line
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 <[email protected]>Signed-off-by Javier Martinez Canillas <[email protected]>---
Quoted 7 lines
Quoted 4 lines
I don't have a sparc64 toolchain to test this patch, but I'm pretty sure that this is the correct fix for the linking error reported by the robot.
arch/sparc/video/Makefile | 2 +-I think you also have to fix
arch/sparc/Makefile.
Oh, you are right! Thanks for pointing that.
Quoted 3 lines
Best regards
Thomas
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat