From: joro@8bytes.org (Joerg Roedel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: integrator: Make sure INTEGRATOR_AP depends on PCI
Date: Wed, 14 Aug 2013 22:04:42 +0200 [thread overview]
Message-ID: <20130814200442.GA20372@8bytes.org> (raw)
In-Reply-To: <20130814195701.GY23006@n2100.arm.linux.org.uk>
On Wed, Aug 14, 2013 at 08:57:01PM +0100, Russell King - ARM Linux wrote:
> On Wed, Aug 14, 2013 at 09:50:18PM +0200, Joerg Roedel wrote:
> > 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?
diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h
index 755fd29..51738e0 100644
--- a/arch/arm/mach-integrator/pci_v3.h
+++ b/arch/arm/mach-integrator/pci_v3.h
@@ -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
WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Arnd Bergmann <arnd@arndb.de>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: integrator: Make sure INTEGRATOR_AP depends on PCI
Date: Wed, 14 Aug 2013 22:04:42 +0200 [thread overview]
Message-ID: <20130814200442.GA20372@8bytes.org> (raw)
In-Reply-To: <20130814195701.GY23006@n2100.arm.linux.org.uk>
On Wed, Aug 14, 2013 at 08:57:01PM +0100, Russell King - ARM Linux wrote:
> On Wed, Aug 14, 2013 at 09:50:18PM +0200, Joerg Roedel wrote:
> > 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?
diff --git a/arch/arm/mach-integrator/pci_v3.h b/arch/arm/mach-integrator/pci_v3.h
index 755fd29..51738e0 100644
--- a/arch/arm/mach-integrator/pci_v3.h
+++ b/arch/arm/mach-integrator/pci_v3.h
@@ -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
next prev parent reply other threads:[~2013-08-14 20:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 19:50 [PATCH] ARM: integrator: Make sure INTEGRATOR_AP depends on PCI Joerg Roedel
2013-08-14 19:50 ` Joerg Roedel
2013-08-14 19:57 ` Russell King - ARM Linux
2013-08-14 19:57 ` Russell King - ARM Linux
2013-08-14 20:04 ` Joerg Roedel [this message]
2013-08-14 20:04 ` Joerg Roedel
2013-08-28 7:26 ` Linus Walleij
2013-08-28 7:26 ` Linus Walleij
2013-08-28 7:55 ` Joerg Roedel
2013-08-28 7:55 ` Joerg Roedel
2013-09-25 10:13 ` Joerg Roedel
2013-09-25 10:13 ` Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130814200442.GA20372@8bytes.org \
--to=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.