[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4765633.31r3eYUQgx@sakura.myxoz.lan>
Date: Thu, 23 Jun 2022 19:44:10 +0200
From: Miko Larsson <mikoxyzzz@...il.com>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
LKML <linux-kernel@...r.kernel.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Vlastimil Babka <vbabka@...e.cz>,
Thomas Gleixner <tglx@...utronix.de>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Sean Christopherson <seanjc@...gle.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
Chris Down <chris@...isdown.name>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
John Ogness <john.ogness@...utronix.de>,
Elliot Berman <quic_eberman@...cinc.com>,
Oleksandr Natalenko <oleksandr@...hat.com>
Subject: Re: [PATCH 0/2] Kconfig: -O3 enablement
On Thursday, 23 June 2022 19:15:14 CEST Masahiro Yamada wrote:
> On Fri, Jun 24, 2022 at 2:00 AM Miko Larsson <mikoxyzzz@...il.com> wrote:
> > On Thursday, 23 June 2022 17:44:57 CEST Masahiro Yamada wrote:
> > > On Fri, Jun 24, 2022 at 12:42 AM Miko Larsson <mikoxyzzz@...il.com>
wrote:
> > > > On Wednesday, 22 June 2022 03:57:34 CEST Masahiro Yamada wrote:
> > > > > If you want to say "use this option carefully",
> > > > > EXPERT might be another option.
> > > > >
> > > > > depends on ARC || EXPERT
> > > >
> > > > Yeah, this would be a fair compromise, though I think it would be
> > > > better to use "visible if" instead of "depends on". I can get a v2 of
> > > > the series together if this is desired.
> > >
> > > Why is "visible if" better than "depends on"?
> >
> > Technically it most likely doesn't matter, but logically it makes more
> > sense, since we'd make CC_OPTIMIZE_FOR_PERFORMANCE_O3 be visible if
> > we're on ARC or if we have EXPERT enabled, instead of depending on
> > them. But yeah, it probably doesn't matter.
>
> Did you write and test the code?
>
Admittedly, I didn't, since I had falsely assumed that "visible if" was
just an "alternative" to "depends on".
> "visible if" is only supported for "menu".
> This is clearly documented at line 207
> of Documentation/kbuild/kconfig-language.rst
>
>
> Using "visible if" for config entry will just
> result in the syntax error.
>
Oops, yeah, I wasn't aware of this. Sorry.
--
~miko
Powered by blists - more mailing lists