From: Roman Zippel <zippel@linux-m68k.org>
To: Adrian Bunk <bunk@stusta.de>
Cc: "Robert P. J. Day" <rpjday@mindspring.com>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>,
kbuild-devel@lists.sourceforge.net
Subject: Re: [2.6 patch] kconfig: remove the unused "requires" syntax
Date: Mon, 1 Jan 2007 20:08:54 +0100 [thread overview]
Message-ID: <200701012008.54631.zippel@linux-m68k.org> (raw)
In-Reply-To: <20061228210521.GG20714@stusta.de>
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
Hi,
On Thursday 28 December 2006 22:05, Adrian Bunk wrote:
> How to add some warning prints?
Simple, see the attached patch.
> And what's the problem with changing the generated files?
> There doesn't seem to be much activity in this area, and the noise of
> changing the generated files doesn't seem to be a problem for me (except
> if anyone else is semnding patches for the same area at the same time.
> It's not as if this noise was big compared to the diff between two Linux
> releases...
The additional syntax doesn't hurt anyone, thus I prefer the simpler change.
> Regarding external trees:
> Do you know about anyone actually using it?
No and that's not the point, there is simply no need to change the syntax this
drastically. Just printing a warning is sufficient, which actually tells the
user more specifically what to change, instead of an anonymous syntax error.
bye, Roman
[-- Attachment #2: requires_warn.patch --]
[-- Type: text/x-diff, Size: 1582 bytes --]
---
scripts/kconfig/zconf.tab.c_shipped | 2 ++
scripts/kconfig/zconf.y | 2 ++
2 files changed, 4 insertions(+)
Index: linux-2.6/scripts/kconfig/zconf.tab.c_shipped
===================================================================
--- linux-2.6.orig/scripts/kconfig/zconf.tab.c_shipped 2007-01-01 19:54:14.000000000 +0100
+++ linux-2.6/scripts/kconfig/zconf.tab.c_shipped 2007-01-01 19:55:16.000000000 +0100
@@ -1738,6 +1738,7 @@ yyreduce:
{
menu_add_dep((yyvsp[-1].expr));
+ zconfprint("warning: 'depends' used without 'on' keyword");
printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
;}
break;
@@ -1746,6 +1747,7 @@ yyreduce:
{
menu_add_dep((yyvsp[-1].expr));
+ zconfprint("warning: 'requires' keyword is deprecated");
printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
;}
break;
Index: linux-2.6/scripts/kconfig/zconf.y
===================================================================
--- linux-2.6.orig/scripts/kconfig/zconf.y 2007-01-01 19:52:20.000000000 +0100
+++ linux-2.6/scripts/kconfig/zconf.y 2007-01-01 19:53:57.000000000 +0100
@@ -422,11 +422,13 @@ depends: T_DEPENDS T_ON expr T_EOL
| T_DEPENDS expr T_EOL
{
menu_add_dep($2);
+ zconfprint("warning: 'depends' used without 'on' keyword");
printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
}
| T_REQUIRES expr T_EOL
{
menu_add_dep($2);
+ zconfprint("warning: 'requires' keyword is deprecated");
printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
};
prev parent reply other threads:[~2007-01-01 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-18 16:41 [PATCH] Remove suggestion that Kconfig files can use "requires" to list deps Robert P. J. Day
2006-12-18 18:04 ` [2.6 patch] kconfig: remove the unused "requires" syntax Adrian Bunk
2006-12-18 18:46 ` Robert P. J. Day
2006-12-18 19:31 ` Adrian Bunk
2006-12-18 19:38 ` Robert P. J. Day
2006-12-19 17:53 ` Roman Zippel
2006-12-28 21:05 ` Adrian Bunk
2007-01-01 19:08 ` Roman Zippel [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=200701012008.54631.zippel@linux-m68k.org \
--to=zippel@linux-m68k.org \
--cc=bunk@stusta.de \
--cc=kbuild-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@mindspring.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