From: Sam Ravnborg <sam@ravnborg.org>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: kconfig - hex are considered decimal
Date: Sun, 6 Jul 2008 23:28:10 +0200 [thread overview]
Message-ID: <20080706212810.GA8025@uranus.ravnborg.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0807021420400.6791@localhost.localdomain>
On Wed, Jul 02, 2008 at 02:39:08PM +0200, Roman Zippel wrote:
> Hi,
>
> On Tue, 1 Jul 2008, Sam Ravnborg wrote:
>
> > - When changing I see the 0x prefix - which I consider OK for hex values
> > - When saving I see the 0x prefix in autoconf.h + .config
>
> I disagree with the proposed patch. It only makes cosmetical changes, but
> it doesn't fix the current inconsistenties. Either we do it properly as in
> the patch below or I'd rather keep it as is.
> The patch checks the default values more strictly, I'm open to opinions
> whether that warning is useful or maybe just check that hex values have
> the 0x prefix.
Thanks - I divided your patch up in two.
First one that adds the new checks
And the second that fixes the warnings
>
> > See patches where kconfig start to use the new
> > method for 'all*config' targets - they are cc:ed to you
> > and available on linux-kbuild.
> > I simply started to use conf_set_all_new_symbols() and
> > as a result I could simplify conf.c.
> >
> > And things got so simple that I dropped the patches
> > introducing aconf.c.
>
> I'd actually prefer to move everything noninteractive out of conf.c, as
> this would be the right place for this:
>
> > -> Give Redhat's nonint_oldconfig a closer look and see
> > how to integrate this functionality
>
> This should be pretty much do it:
>
> for_all_symbols(i, sym) {
> sym_calc_value(sym);
> if (sym->flags & SYMBOL_WRITE && !sym_has_value(sym))
> printf(...);
> }
>
> The point is that this has nothing to do with what's already in conf.c,
> this should be a separate utility for all noninteractive kconfig jobs.
I do not disagree with you here. But for now it was just more
natural to add it where I deleted the other stuff.
I will move it to a separate .c file later.
Sam
prev parent reply other threads:[~2008-07-06 21:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 11:51 kconfig - hex are considered decimal Sam Ravnborg
2008-06-29 21:29 ` Sam Ravnborg
2008-06-30 13:19 ` Roman Zippel
2008-06-30 20:40 ` Sam Ravnborg
2008-06-30 21:59 ` Roman Zippel
2008-07-01 6:12 ` Sam Ravnborg
2008-07-02 12:39 ` Roman Zippel
2008-07-06 21:28 ` Sam Ravnborg [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=20080706212810.GA8025@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kbuild@vger.kernel.org \
--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