* [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI
@ 2013-08-05 9:07 Manjunath Goudar
2013-08-05 9:17 ` Viresh Kumar
2013-08-05 10:59 ` Russell King - ARM Linux
0 siblings, 2 replies; 5+ messages in thread
From: Manjunath Goudar @ 2013-08-05 9:07 UTC (permalink / raw)
To: linux-arm-kernel
From: root <root@si-cspbld63.lge.net>
This patch adds a Kconfig dependency on MACH_KS8695,MACH_CM* or MACH_IM*
being available before PCI can be enabled. Without this patch,build system
can lead to issues. This was discovered during randconfig testing,
without PCI if any one of MACH_KS8695,MACH_CM* or MACH_IM* being enabled,
leading to the following error:
LD init/built-in.o
arch/arm/mach-ks8695/built-in.o: In function `og_register_pci':
arch/arm/mach-ks8695/board-og.c:47:undefined reference to `ks8695_init_pci'
make: *** [vmlinux] Error 1
Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Deepak Saxena <dsaxena@linaro.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: linux-arm-kernel at lists.infradead.org
---
arch/arm/mach-ks8695/Kconfig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/mach-ks8695/Kconfig b/arch/arm/mach-ks8695/Kconfig
index a545976..29d7d9f 100644
--- a/arch/arm/mach-ks8695/Kconfig
+++ b/arch/arm/mach-ks8695/Kconfig
@@ -5,6 +5,7 @@ menu "Kendin/Micrel KS8695 Implementations"
config MACH_KS8695
bool "KS8695 development board"
select MIGHT_HAVE_PCI
+ depends on PCI
help
Say 'Y' here if you want your kernel to run on the original
Kendin-Micrel KS8695 development board.
@@ -53,6 +54,7 @@ config MACH_CM4002
config MACH_CM4008
bool "OpenGear CM4008"
select MIGHT_HAVE_PCI
+ depends on PCI
help
Say 'Y' here if you want your kernel to support the OpenGear
CM4008 Console Server. See http://www.opengear.com for more
@@ -61,6 +63,7 @@ config MACH_CM4008
config MACH_CM41xx
bool "OpenGear CM41xx"
select MIGHT_HAVE_PCI
+ depends on PCI
help
Say 'Y' here if you want your kernel to support the OpenGear
CM4016 or CM4048 Console Servers. See http://www.opengear.com for
@@ -69,6 +72,7 @@ config MACH_CM41xx
config MACH_IM4004
bool "OpenGear IM4004"
select MIGHT_HAVE_PCI
+ depends on PCI
help
Say 'Y' here if you want your kernel to support the OpenGear
IM4004 Secure Access Server. See http://www.opengear.com for
@@ -77,6 +81,7 @@ config MACH_IM4004
config MACH_IM42xx
bool "OpenGear IM42xx"
select MIGHT_HAVE_PCI
+ depends on PCI
help
Say 'Y' here if you want your kernel to support the OpenGear
IM4216 or IM4248 Console Servers. See http://www.opengear.com for
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI
2013-08-05 9:07 [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI Manjunath Goudar
@ 2013-08-05 9:17 ` Viresh Kumar
[not found] ` <CAJFYCKHVb7EXiYPDBACotSc8bwnBM4bTXvtV-Fr=F2MonV7rKg@mail.gmail.com>
2013-08-05 10:59 ` Russell King - ARM Linux
1 sibling, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2013-08-05 9:17 UTC (permalink / raw)
To: linux-arm-kernel
On 5 August 2013 14:37, Manjunath Goudar <manjunath.goudar@linaro.org> wrote:
> From: root <root@si-cspbld63.lge.net>
:)
> This patch adds a Kconfig dependency on MACH_KS8695,MACH_CM* or MACH_IM*
> being available before PCI can be enabled. Without this patch,build system
Add Space after ','
> can lead to issues. This was discovered during randconfig testing,
> without PCI if any one of MACH_KS8695,MACH_CM* or MACH_IM* being enabled,
Same here.
> leading to the following error:
>
> LD init/built-in.o
> arch/arm/mach-ks8695/built-in.o: In function `og_register_pci':
> arch/arm/mach-ks8695/board-og.c:47:undefined reference to `ks8695_init_pci'
> make: *** [vmlinux] Error 1
>
> Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Deepak Saxena <dsaxena@linaro.org>
> Cc: Greg Ungerer <gerg@uclinux.org>
> Cc: linux-arm-kernel at lists.infradead.org
> ---
> arch/arm/mach-ks8695/Kconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-ks8695/Kconfig b/arch/arm/mach-ks8695/Kconfig
> index a545976..29d7d9f 100644
> --- a/arch/arm/mach-ks8695/Kconfig
> +++ b/arch/arm/mach-ks8695/Kconfig
> @@ -5,6 +5,7 @@ menu "Kendin/Micrel KS8695 Implementations"
> config MACH_KS8695
> bool "KS8695 development board"
> select MIGHT_HAVE_PCI
> + depends on PCI
You need both PCI and MIGHT_HAVE_PCI? Don't know but it looks
like defconfig is missing PCI stuff.. and MIGHT_HAVE_PCI is enough
here?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI
2013-08-05 9:07 [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI Manjunath Goudar
2013-08-05 9:17 ` Viresh Kumar
@ 2013-08-05 10:59 ` Russell King - ARM Linux
1 sibling, 0 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2013-08-05 10:59 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Aug 05, 2013 at 02:37:04PM +0530, Manjunath Goudar wrote:
> From: root <root@si-cspbld63.lge.net>
>
> This patch adds a Kconfig dependency on MACH_KS8695,MACH_CM* or MACH_IM*
> being available before PCI can be enabled. Without this patch,build system
> can lead to issues. This was discovered during randconfig testing,
> without PCI if any one of MACH_KS8695,MACH_CM* or MACH_IM* being enabled,
> leading to the following error:
>
> LD init/built-in.o
> arch/arm/mach-ks8695/built-in.o: In function `og_register_pci':
> arch/arm/mach-ks8695/board-og.c:47:undefined reference to `ks8695_init_pci'
> make: *** [vmlinux] Error 1
This looks wrong.
> diff --git a/arch/arm/mach-ks8695/Kconfig b/arch/arm/mach-ks8695/Kconfig
> index a545976..29d7d9f 100644
> --- a/arch/arm/mach-ks8695/Kconfig
> +++ b/arch/arm/mach-ks8695/Kconfig
> @@ -5,6 +5,7 @@ menu "Kendin/Micrel KS8695 Implementations"
> config MACH_KS8695
> bool "KS8695 development board"
> select MIGHT_HAVE_PCI
> + depends on PCI
So, to be able to select PCI, MIGHT_HAVE_PCI needs to be enabled. That's
selected by enabling MACH_KS8695, but now you make MACH_KS8695 depend on
PCI. That sounds to me like a circular dependency.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-08-07 7:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 9:07 [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI Manjunath Goudar
2013-08-05 9:17 ` Viresh Kumar
[not found] ` <CAJFYCKHVb7EXiYPDBACotSc8bwnBM4bTXvtV-Fr=F2MonV7rKg@mail.gmail.com>
2013-08-06 2:07 ` Greg Ungerer
[not found] ` <CAJFYCKErP_epEY6EbcK3trBWOHGW_EU6usuAwwnaDXk_maHsCA@mail.gmail.com>
2013-08-07 7:25 ` Greg Ungerer
2013-08-05 10:59 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).