linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Boqun Feng <boqun.feng@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	Arnd Bergmann <arnd@arndb.de>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Paul Mackerras <paulus@samba.org>,
	Olof Johansson <olof@lixom.net>,
	Geoff Levand <geoff@infradead.org>
Subject: Re: [PATCH] powerpc: Kconfig: remove BE-only platforms from LE kernel build
Date: Wed, 09 Sep 2015 15:48:00 +1000	[thread overview]
Message-ID: <1441777680.23373.1.camel@ellerman.id.au> (raw)
In-Reply-To: <20150909032548.GA18626@fixme-laptop.cn.ibm.com>

On Wed, 2015-09-09 at 11:25 +0800, Boqun Feng wrote:
> Hi Michael,
> 
> On Wed, Sep 09, 2015 at 12:26:44PM +1000, Michael Ellerman wrote:
> > On Mon, 2015-09-07 at 07:58 +0800, Boqun Feng wrote:
> > > diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cell/Kconfig
> > > index 2f23133..808a904 100644
> > > --- a/arch/powerpc/platforms/cell/Kconfig
> > > +++ b/arch/powerpc/platforms/cell/Kconfig
> > > @@ -25,7 +25,7 @@ config PPC_CELL_NATIVE
> > >  
> > >  config PPC_IBM_CELL_BLADE
> > >  	bool "IBM Cell Blade"
> > > -	depends on PPC64 && PPC_BOOK3S
> > > +	depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
> > 
> > We end up saying this five times.
> > 
> > We already have PPC_BOOK3S_64 which captures the first two conditions, should
> > we add a PPC_BOOK3S_64_BE which expresses it all?
> 
> I'm not sure whether this is worth.. IMO, we add a config option only if
> 
> 1.	we can use this config somewhere in the code, for example,
> 	"#ifdef CONFIG_XXX"
> or
> 
> 2.	we want to offer a option for users to choose.
>
> PPC_BOOK3S_64_BE satisfies neither condition. Further more,
> CONFIG_PPC64, CONFIG_PPC_BOOK3S and CONFIG_CPU_BIG_ENDIAN all are used
> in some #ifdefs in current code. As a newbie of kernel, I'm happy to get
> some knowledge like: "If I'm hacking PS3, then #ifndef CONFIG_PPC64 is
> guaranteed to be false, so I can just ignore the code guarded by them".
> But if we add a PPC_BOOK3S_64_BE, it will take a little more effort to
> see this.

Yeah those are good points, so I'll take it as is. Thanks for thinking about it :)

cheers

  reply	other threads:[~2015-09-09  5:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-06 23:58 [PATCH] powerpc: Kconfig: remove BE-only platforms from LE kernel build Boqun Feng
2015-09-08 17:04 ` Geoff Levand
2015-09-09  2:26 ` Michael Ellerman
2015-09-09  3:25   ` Boqun Feng
2015-09-09  5:48     ` Michael Ellerman [this message]
2015-09-18  0:22 ` Boqun Feng
2015-09-18  9:49   ` Michael Ellerman
2015-09-18  9:59     ` Boqun Feng
2015-10-02  7:47 ` Michael Ellerman

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=1441777680.23373.1.camel@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=arnd@arndb.de \
    --cc=benh@kernel.crashing.org \
    --cc=boqun.feng@gmail.com \
    --cc=geoff@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=olof@lixom.net \
    --cc=paulus@samba.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).