From: Michal Marek <mmarek@suse.cz>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: Ulf Magnusson <ulfalizer.lkml@gmail.com>,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.35-rc6] kconfig: fix MODULES-related bug in case of no .config
Date: Thu, 29 Jul 2010 16:54:41 +0200 [thread overview]
Message-ID: <20100729145438.GA18251@sepie.suse.cz> (raw)
In-Reply-To: <20100728062313.GC5161@cr0.nay.redhat.com>
On Wed, Jul 28, 2010 at 02:23:13PM +0800, Américo Wang wrote:
> On Tue, Jul 27, 2010 at 09:57:43PM +0200, Ulf Magnusson wrote:
> >On Tue, Jul 27, 2010 at 09:27:27PM +0200, Ulf Magnusson wrote:
> >> Hi,
> >>
> >> There seems to be a kconfig bug due to MODULES not always being evaluated if no
> >> .config is found. Take the following Kconfig as an example:
> >>
> >> config MODULES
> >> def_bool y
> >>
> >> config FOO
> >> def_tristate m
> >>
> >> With no .config, the following configuration is generated:
> >>
> >> CONFIG_MODULES=y
> >> CONFIG_FOO=y
> >>
> >> With an empty .config, the following:
> >>
> >> CONFIG_MODULES=y
> >> CONFIG_FOO=m
> >>
> >> Tristate choice statements can also exhibit the problem, due to having an
> >> implicit rev_dep (select) containing "m".
> >>
> >> The problem is that MODULES is never evaluted in conf_read_simple() unless
> >> there's a .config. The following patch fixes this.
>
> <snip>
>
> >
> >Silly error in the patch. The correct patch follows.
Even the previous patch was correct, sym_calc_value() does nothing if
the argument is NULL.
> >
> >Signed-off-by: Ulf Magnusson <ulfalizer.lkml@gmail.com>
> >
>
> Sounds good for me.
>
> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Thanks. Added for 2.6.36 to kbuild-2.6.git (this is not a .35
regression AFAICS).
Michal
prev parent reply other threads:[~2010-07-29 14:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 19:27 [PATCH 2.6.35-rc6] kconfig: fix MODULES-related bug in case of no .config Ulf Magnusson
2010-07-27 19:57 ` Ulf Magnusson
2010-07-28 6:23 ` Américo Wang
2010-07-29 14:54 ` Michal Marek [this message]
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=20100729145438.GA18251@sepie.suse.cz \
--to=mmarek@suse.cz \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ulfalizer.lkml@gmail.com \
--cc=xiyou.wangcong@gmail.com \
/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