ppc: Fix build error with CONFIG_PCI=n
Subsystems (2)
PATCH 1/1 powerpc: Fix build error for vga16fb
In reply to Pranith KumarFix a build error caused by
drivers/built-in.o: In function `vga16fb_probe':drivers/video/fbdev/vga16fb.c:1326: undefined reference to vgacon_remap_base' drivers/video/fbdev/vga16fb.c:1326: undefined reference to vgacon_remap_base'
make: *** [vmlinux] Error 1
This is occuring as vgacon_remap_base is exported only when CONFIG_VGA_CONSOLE=y. Fix the error by making FB_VBA16 depend on CONFIG_VGA_CONSOLE.
--- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/Kconfig +1 -1
@@ -547,7 +547,7 @@ config FB_IMSTT config FB_VGA16 tristate "VGA 16-color graphics support" - depends on FB && (X86 || PPC) + depends on FB && (X86 || PPC) && CONFIG_VGA_CONSOLE select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT
Signature · 1 line
1.9.1
PATCH v2 1/1 ppc: Fix build error with CONFIG_PCI=n
Fix ppc 32 build failure as reported here:
http://kisskb.ellerman.id.au/kisskb/buildresult/11663513/
The error is as follows:
arch/powerpc/include/asm/floppy.h:142:20: error: 'isa_bridge_pcidev' undeclared (first use in this function)
This is happening since floppy.o is enabled by BLK_DEV_FD which depends on ARCH_MAY_HAVE_PC_FDC which is in-turn enabled if PPC_PSERIES=n.
The following commit changes the dependency so that ARCH_MAY_HAVE_PC_FDC is dependent exclusively on PCI since otherwise it will not compile.
--- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -1
@@ -182,7 +182,7 @@ config SCHED_OMIT_FRAME_POINTER config ARCH_MAY_HAVE_PC_FDC bool - default !PPC_PSERIES || PCI + default PCI config PPC_OF def_bool y
Signature · 1 line
1.9.1
Re: [PATCH] powerpc: Fix build error for vga16fb
In reply to Pranith KumarHi Pranith,
Quoted 23 lines · Pranith Kumar
Fix a build error caused by
drivers/built-in.o: In function `vga16fb_probe':drivers/video/fbdev/vga16fb.c:1326: undefined reference tovgacon_remap_base' drivers/video/fbdev/vga16fb.c:1326: undefined reference tovgacon_remap_base'
make: *** [vmlinux] Error 1This is occuring as
vgacon_remap_baseis exported only whenCONFIG_VGA_CONSOLE=y. Fix the error by makingFB_VBA16depend onCONFIG_VGA_CONSOLE.Signed-off-by Pranith Kumar <[email protected]>Reported-by Geert Uytterhoeven <[email protected]>CC Andrew Morton <[email protected]>--- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/Kconfig +0
-0
drivers/video/fbdev/Kconfig config FB_IMSTT · line 550
Quoted 5 lines
drivers/video/fbdev/Kconfig +1
-1@@ -547,7 +547,7 @@ config FB_IMSTT config FB_VGA16 tristate "VGA 16-color graphics support" - depends on FB && (X86 || PPC) + depends on FB && (X86 || PPC) && CONFIG_VGA_CONSOLE
The dependency on CONFIG_VGA_CONSOLE only exists on PPC, not on x86. So this is not correct.
Digging a bit deeper: There's no code left in arch/powerpc that actually sets vgacon_remap_base, so it's not gonna work anyway.
It seems vga16 support on PPC died with the removal of arch/ppc/.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH] powerpc: Fix build error for vga16fb
Quoted 3 lines · Geert Uytterhoeven
Digging a bit deeper: There's no code left in
arch/powerpcthat actually setsvgacon_remap_base, so it's not gonna work anyway.
It seems vga16 support on PPC died with the removal ofarch/ppc/.
OK. I will remove the dependency on PPC for vga16fb.
Signature · 1 line
Pranith
Re: [PATCH] powerpc: Fix build error for vga16fb
In reply to Geert UytterhoevenQuoted 35 lines · Geert Uytterhoeven
Hi Pranith,
Quoted 23 lines · Pranith Kumar
Fix a build error caused by
drivers/built-in.o: In function `vga16fb_probe':drivers/video/fbdev/vga16fb.c:1326: undefined reference tovgacon_remap_base' drivers/video/fbdev/vga16fb.c:1326: undefined reference tovgacon_remap_base'
make: *** [vmlinux] Error 1This is occuring as
vgacon_remap_baseis exported only whenCONFIG_VGA_CONSOLE=y. Fix the error by makingFB_VBA16depend onCONFIG_VGA_CONSOLE.Signed-off-by Pranith Kumar <[email protected]>Reported-by Geert Uytterhoeven <[email protected]>CC Andrew Morton <[email protected]>--- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/Kconfig +0
-0drivers/video/fbdev/Kconfig config FB_IMSTT · line 550
Quoted 5 lines
drivers/video/fbdev/Kconfig +1
-1@@ -547,7 +547,7 @@ config FB_IMSTT config FB_VGA16 tristate "VGA 16-color graphics support" - depends on FB && (X86 || PPC) + depends on FB && (X86 || PPC) && CONFIG_VGA_CONSOLEThe dependency on
CONFIG_VGA_CONSOLEonly exists on PPC, not on x86. So this is not correct.
Quoted 3 lines
Digging a bit deeper: There's no code left in
arch/powerpcthat actually setsvgacon_remap_base, so it's not gonna work anyway.
It seems vga16 support on PPC died with the removal ofarch/ppc/.
Hmm, so I wonder if vga16fb is supposed to work on ppc or not. Pranith's follow-up patch disables vga16fb for PPC, which obviously fixes the compilation problem, but is that really a correct fix?
Tomi