* [PATCH 3/4] kconfig: adjust warning message for conflicting types
@ 2013-10-02 5:24 Martin Walch
2013-10-02 5:33 ` David Rientjes
0 siblings, 1 reply; 2+ messages in thread
From: Martin Walch @ 2013-10-02 5:24 UTC (permalink / raw)
Cc: Michal Marek, Jiri Kosina, Yann E. MORIN,
Arve Hjønnevåg, Benjamin Poirier, Dirk Gouders,
Wang YanQing, Andrew Morton, Jean Delvare, Kees Cook, Alan Cox,
linux-kbuild, linux-kernel
From: Martin Walch <walch.martin@web.de>
Date: Wed, 2 Oct 2013 06:58:01 +0200
Subject: [PATCH 3/4] kconfig: adjust warning message for conflicting types
Adjust warning: a second symbol type does *not* replace the first one.
Signed-off-by: Martin Walch <walch.martin@web.de>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index b970101..e511df5 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -119,7 +119,7 @@ void menu_set_type(int type)
sym->type = type;
return;
}
- menu_warn(current_entry, "type of '%s' redefined from '%s' to '%s'",
+ menu_warn(current_entry, "type of '%s' not redefined from '%s' to '%s'",
sym->name ? sym->name : "<choice>",
sym_type_name(sym->type), sym_type_name(type));
}
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/4] kconfig: adjust warning message for conflicting types
2013-10-02 5:24 [PATCH 3/4] kconfig: adjust warning message for conflicting types Martin Walch
@ 2013-10-02 5:33 ` David Rientjes
0 siblings, 0 replies; 2+ messages in thread
From: David Rientjes @ 2013-10-02 5:33 UTC (permalink / raw)
To: Martin Walch
Cc: Michal Marek, Jiri Kosina, Yann E. MORIN,
Arve Hjønnevåg, Benjamin Poirier, Dirk Gouders,
Wang YanQing, Andrew Morton, Jean Delvare, Kees Cook, Alan Cox,
linux-kbuild, linux-kernel
On Wed, 2 Oct 2013, Martin Walch wrote:
> diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
> index b970101..e511df5 100644
> --- a/scripts/kconfig/menu.c
> +++ b/scripts/kconfig/menu.c
> @@ -119,7 +119,7 @@ void menu_set_type(int type)
> sym->type = type;
> return;
> }
> - menu_warn(current_entry, "type of '%s' redefined from '%s' to '%s'",
> + menu_warn(current_entry, "type of '%s' not redefined from '%s' to '%s'",
> sym->name ? sym->name : "<choice>",
> sym_type_name(sym->type), sym_type_name(type));
> }
The warning is stating that the symbol was attempted to be redefined from
one type to another, not that it was successful, so I don't think this
patch actually helps make anything clearer. (gcc warns when a symbol is
redefined by saying "redefintion of `blah`".) Perhaps include that the
redefinition was ignored?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-02 5:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 5:24 [PATCH 3/4] kconfig: adjust warning message for conflicting types Martin Walch
2013-10-02 5:33 ` David Rientjes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox