All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ppc: Fix build error with CONFIG_PCI=n
@ 2014-08-18 21:13 ` Pranith Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Pranith Kumar @ 2014-08-18 21:13 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	open list:LINUX FOR POWERPC..., open list
  Cc: Andrew Morton, geert

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.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
CC: Andrew Morton <akpm@linux-foundation.org>
---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index a577609f..9c1aa77 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -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
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-26 10:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 21:13 [PATCH v2] ppc: Fix build error with CONFIG_PCI=n Pranith Kumar
2014-08-18 21:13 ` Pranith Kumar
2014-08-18 21:13 ` [PATCH] powerpc: Fix build error for vga16fb Pranith Kumar
2014-08-18 21:13   ` Pranith Kumar
2014-08-18 21:28   ` Geert Uytterhoeven
2014-08-18 21:28     ` Geert Uytterhoeven
2014-08-18 21:34     ` Pranith Kumar
2014-08-18 21:34       ` Pranith Kumar
2014-08-26 10:02     ` Tomi Valkeinen
2014-08-26 10:02       ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.