From: Tycho Andersen <tycho@docker.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Yann E . MORIN" <yann.morin.1998@free.fr>,
linux-kbuild <linux-kbuild@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Roman Zippel <zippel@linux-m68k.org>
Subject: Re: [PATCH] kconfig: always use user input symbols
Date: Fri, 19 May 2017 12:09:23 -0600 [thread overview]
Message-ID: <20170519180923.eim267rfbtlwrd6p@smitten> (raw)
In-Reply-To: <CAMuHMdUjyatcp5ROwOW3JJWsTHqc79PCpdVrhFYCSFoFQr5YTg@mail.gmail.com>
Hi Geert,
On Fri, May 19, 2017 at 07:29:05PM +0200, Geert Uytterhoeven wrote:
> Hi Tycho,
>
> On Fri, May 19, 2017 at 5:08 PM, Tycho Andersen <tycho@docker.com> wrote:
> > ...regardless of visibility.
> >
> > When a symbol that is not visible by default (e.g. PNFS_FLEXFILE_LAYOUT)
> > has a default value, it is impossible to set the value to something not the
> > default:
> >
> > ~/packages/linux render-symbol-inputs grep FLEXFILE .config
> > CONFIG_PNFS_FLEXFILE_LAYOUT=y
> > ~/packages/linux render-symbol-inputs make oldconfig
> > scripts/kconfig/conf --oldconfig Kconfig
> > ~/packages/linux render-symbol-inputs grep FLEXFILE .config
> > CONFIG_PNFS_FLEXFILE_LAYOUT=m
> >
> > There are two reasons for this: the symbol's user input value is only
> > considered when it is visible (hunks 2 and 3), and the user values are
> > explicitly ignored (hunk 1) if the symbols are not visible.
> >
> > It's not clear to me why hunk 1 exists. I'm sure it solve some problem, but
> > I'm not sure why we would ever want to discard user input values, and
> > causes a problem exactly as the comment describes.
>
> This is intentional. If a symbol is not visible, it's not meant to be changed
> by the user, as doing so may break things (at build or runtime).
>
> E.g. running "make oldconfig" after a kernel upgrade may retain the old
> state of a variable, which is now invalid. Ignoring invisible symbols
> avoids this.
Makes sense. Thanks!
Tycho
next prev parent reply other threads:[~2017-05-19 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 15:08 Tycho Andersen
2017-05-19 17:29 ` Geert Uytterhoeven
2017-05-19 18:09 ` Tycho Andersen [this message]
2017-05-22 6:53 ` kbuild test robot
2017-05-22 7:48 ` kbuild test robot
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=20170519180923.eim267rfbtlwrd6p@smitten \
--to=tycho@docker.com \
--cc=geert@linux-m68k.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yann.morin.1998@free.fr \
--cc=zippel@linux-m68k.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
all inboxes | Powered by JetHome®