linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gerg@uclinux.org (Greg Ungerer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mach-ks8695/Kconfig: Make MACH_KS8695 depends on PCI
Date: Tue, 06 Aug 2013 12:07:02 +1000	[thread overview]
Message-ID: <52005A46.4090306@uclinux.org> (raw)
In-Reply-To: <CAJFYCKHVb7EXiYPDBACotSc8bwnBM4bTXvtV-Fr=F2MonV7rKg@mail.gmail.com>

Hi Manjunath,

On 05/08/13 20:31, Manjunath Goudar wrote:
> On 5 August 2013 14:47, Viresh Kumar <viresh.kumar at linaro.org <mailto:viresh.kumar@linaro.org>> wrote:
> 
>     On 5 August 2013 14:37, Manjunath Goudar <manjunath.goudar at linaro.org <mailto:manjunath.goudar@linaro.org>> wrote:
>     > From: root <root at si-cspbld63.lge.net <mailto: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 at linaro.org <mailto:manjunath.goudar@linaro.org>>
>     > Cc: Arnd Bergmann <arnd at arndb.de <mailto:arnd@arndb.de>>
>     > Cc: Deepak Saxena <dsaxena at linaro.org <mailto:dsaxena@linaro.org>>
>     > Cc: Greg Ungerer <gerg at uclinux.org <mailto:gerg@uclinux.org>>
>     > Cc: linux-arm-kernel at lists.infradead.org <mailto: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.

It shouldn't though, thus the original use of MIGHT_HAVE_PCI.
The board-og.c machine code supports a number of boards, some of
which don't have a PCI bus (that is they use the KS8695 CPU that
doesn't contain the PCI bus silicon).

I think you want a fix that makes the pci support code in this file
conditional on CONFIG_PCI.

Regards
Greg

  parent reply	other threads:[~2013-08-06  2:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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

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=52005A46.4090306@uclinux.org \
    --to=gerg@uclinux.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 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).