[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAQ_4QUfBxRu2HpPS99Ay7JTcqFTHsrBmrPk+d8So5tjOQ@mail.gmail.com>
Date: Fri, 24 Jun 2022 02:15:14 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Miko Larsson <mikoxyzzz@...il.com>
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 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?
"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.
> --
> ~miko
>
>
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists