Skip to contentSkip to conversation

ARM: integrator: Make sure INTEGRATOR_AP depends on PCI

PATCH In review Joerg Roedel 3 participants 6 messages Aug 14, 2013 – Sep 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: integrator: Make sure INTEGRATOR_AP depends on PCI

Add this dependency to the Kconfig file to fix the following build error when CONFIG_INTEGRATOR_AP is set but CONFIG_PCI is not:

LD init/built-in.o
arch/arm/mach-integrator/built-in.o: In function `ap_map_io':
integrator_cp.c:(.init.text+0x570): undefined reference to `pci_v3_early_init' make[1]: *** [vmlinux] Error 1
make: *** [sub-make] Error 2

---
 arch/arm/mach-integrator/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-integrator/Kconfig +1 -0
index abeff25..be16569 100644
@@ -9,6 +9,7 @@ config ARCH_INTEGRATOR_AP
 	select SERIAL_AMBA_PL010
 	select SERIAL_AMBA_PL010_CONSOLE
 	select SOC_BUS
+	depends on PCI
 	help
 	  Include support for the ARM(R) Integrator/AP and
 	  Integrator/PP2 platforms.
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 3 lines · Joerg Roedel

Add this dependency to the Kconfig file to fix the following build error when CONFIG_INTEGRATOR_AP is set but CONFIG_PCI is not:

No, integrator does not require PCI, so this needs to be fixed by other means, such as finding out how the breakage was introduced, and fixing the real cause of this regression.

#2 lore raw
Quoted 8 lines · Russell King - ARM Linux
Quoted 3 lines · Joerg Roedel

Add this dependency to the Kconfig file to fix the following build error when CONFIG_INTEGRATOR_AP is set but CONFIG_PCI is not:

No, integrator does not require PCI, so this needs to be fixed by other means, such as finding out how the breakage was introduced, and fixing the real cause of this regression.

You are right, just found out that this introduces a recursive dependency while compiling another config:

arch/arm/Kconfig:1403:error: recursive dependency detected!
arch/arm/Kconfig:1403: symbol PCI depends on MIGHT_HAVE_PCI
arch/arm/Kconfig:108: symbol MIGHT_HAVE_PCI is selected by ARCH_INTEGRATOR_AP
arch/arm/mach-integrator/Kconfig:5: symbol ARCH_INTEGRATOR_AP depends on PCI

So when integrator does not depend on PCI this diff is more appropriate?

arch/arm/mach-integrator/pci_v3.h +8 -1
index 755fd29..51738e0 100644
@@ -1,2 +1,9 @@
-/* Simple oneliner include to the PCIv3 early init */
+/* Define PCIv3 early init */
+#ifdef CONFIG_PCI
 extern int pci_v3_early_init(void);
+#else
+static inline int pci_v3_early_init(void)
+{
+	return 0;
+}
+#endif
Reviewed-by
#3 lore raw
Quoted 7 lines · Joerg Roedel

So when integrator does not depend on PCI this diff is more appropriate?

arch/arm/mach-integrator/pci_v3.h +0 -0
index 755fd29..51738e0 100644

arch/arm/mach-integrator/pci_v3.h line 9

Quoted 10 lines
arch/arm/mach-integrator/pci_v3.h +8 -1
@@ -1,2 +1,9 @@
-/* Simple oneliner include to the PCIv3 early init */
+/* Define PCIv3 early init */
+#ifdef CONFIG_PCI
 extern int pci_v3_early_init(void);
+#else
+static inline int pci_v3_early_init(void)
+{
+       return 0;
+}
+#endif

Yes.

And can you please create and send a proper patch with this content to arm at kernel.org and the mailing list on CC, with a request for the ARM SoC maintainers to apply it directly as a fix?

You might as well add Cc: stable at vger.kernel.org as well.

Yours,
Linus Walleij

#4 lore raw
Quoted 21 lines · Linus Walleij
Quoted 7 lines · Joerg Roedel

So when integrator does not depend on PCI this diff is more appropriate?

arch/arm/mach-integrator/pci_v3.h +0 -0
index 755fd29..51738e0 100644

arch/arm/mach-integrator/pci_v3.h line 9

Quoted 10 lines
arch/arm/mach-integrator/pci_v3.h +8 -1
@@ -1,2 +1,9 @@
-/* Simple oneliner include to the PCIv3 early init */
+/* Define PCIv3 early init */
+#ifdef CONFIG_PCI
 extern int pci_v3_early_init(void);
+#else
+static inline int pci_v3_early_init(void)
+{
+       return 0;
+}
+#endif

Yes.

Quoted 8 lines

And can you please create and send a proper patch with this content to arm at kernel.org and the mailing list on CC, with a request for the ARM SoC maintainers to apply it directly as a fix?

You might as well add Cc: stable at vger.kernel.org as well.

Will do, thanks for your review.

Cheers,

Joerg

#5 lore raw
In reply to Linus Walleij
Quoted 9 lines · Linus Walleij

Yes.

And can you please create and send a proper patch with this content to arm at kernel.org and the mailing list on CC, with a request for the ARM SoC maintainers to apply it directly as a fix?

You might as well add Cc: stable at vger.kernel.org as well.

Okay, sorry, forgot about this one. But my compile-tests kindly reminded me and I sent the patch out again now :)

Joerg