On 5 August 2013 14:47, Viresh Kumar <viresh.kumar@linaro.org> wrote:
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@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?

 PCI is needed here because board-og.c file depends on pci.o.

 We are only selecting MIGHT_HAVE_PCI not setting dependence.

Thanks
Manjunath Goudar