Skip to contentSkip to conversation

sparc: Fix undefined reference to fb_is_primary_device

PATCH Superseded Javier Martinez Canillas 3 participants 5 messages Feb 20, 2024 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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'

Fixes 55bffc8170bb ("fbdev: Split frame buffer support in FB and FB_CORE symbols")

---

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
index 6baddbd58e4d..d4d83f1702c6 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

Am 20.02.24 um 01:34 schrieb Javier Martinez Canillas:

Quoted 8 lines

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:

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")
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
index 6baddbd58e4d..d4d83f1702c6 100644
@@ -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)
#2 lore raw
In reply to Javier Martinez Canillas
Quoted 10 lines · Javier Martinez Canillas

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 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_CORE symbols")

Acked-by; Arnd Bergmann <[email protected]>

#3 lore raw
In reply to Javier Martinez Canillas

Hi

Am 20.02.24 um 01:34 schrieb Javier Martinez Canillas:

Quoted 14 lines

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'

Fixes 55bffc8170bb ("fbdev: Split frame buffer support in FB and FB_CORE symbols")
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
index 6baddbd58e4d..d4d83f1702c6 100644
@@ -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)
#4 lore raw

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 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'

Fixes 55bffc8170bb ("fbdev: Split frame buffer support in FB and FB_CORE symbols")

---

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