* [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text'
@ 2011-08-04 1:52 Arnaud Lacombe
2011-08-04 1:52 ` [PATCH 2/2] kconfig: factor code in menu_get_ext_help() Arnaud Lacombe
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Arnaud Lacombe @ 2011-08-04 1:52 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kernel, linux-kbuild, Arnaud Lacombe
After commit 5416857867c9cc94aba641898c567d9707de30f1, 1nohelp_text' is no
longer referenced, nuke it.
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
scripts/kconfig/nconf.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 39ca1f1..b113c50 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -182,8 +182,6 @@ setmod_text[] = N_(
"This feature depends on another which\n"
"has been configured as a module.\n"
"As a result, this feature will be built as a module."),
-nohelp_text[] = N_(
-"There is no help available for this option.\n"),
load_config_text[] = N_(
"Enter the name of the configuration file you wish to load.\n"
"Accept the name shown to restore the configuration you\n"
--
1.7.6.153.g78432
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] kconfig: factor code in menu_get_ext_help()
2011-08-04 1:52 [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
@ 2011-08-04 1:52 ` Arnaud Lacombe
2011-08-08 14:03 ` Michal Marek
2011-08-04 1:53 ` [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
2011-08-08 14:02 ` Michal Marek
2 siblings, 1 reply; 5+ messages in thread
From: Arnaud Lacombe @ 2011-08-04 1:52 UTC (permalink / raw)
To: Michal Marek
Cc: linux-kernel, linux-kbuild, Arnaud Lacombe, Srinivas Kandagatla
Cc: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
---
| 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
--git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index beeb92e..8c2a97e 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -10,8 +10,7 @@
#include "lkc.h"
-static const char nohelp_text[] = N_(
- "There is no help available for this option.\n");
+static const char nohelp_text[] = "There is no help available for this option.";
struct menu rootmenu;
static struct menu **last_entry_ptr;
@@ -595,15 +594,14 @@ struct gstr get_relations_str(struct symbol **sym_arr)
void menu_get_ext_help(struct menu *menu, struct gstr *help)
{
struct symbol *sym = menu->sym;
+ const char *help_text = nohelp_text;
if (menu_has_help(menu)) {
if (sym->name)
str_printf(help, "%s%s:\n\n", CONFIG_, sym->name);
- str_append(help, _(menu_get_help(menu)));
- str_append(help, "\n");
- } else {
- str_append(help, nohelp_text);
+ help_text = menu_get_help(menu);
}
+ str_printf(help, "%s\n", _(help_text));
if (sym)
get_symbol_str(help, sym);
}
--
1.7.6.153.g78432
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text'
2011-08-04 1:52 [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
2011-08-04 1:52 ` [PATCH 2/2] kconfig: factor code in menu_get_ext_help() Arnaud Lacombe
@ 2011-08-04 1:53 ` Arnaud Lacombe
2011-08-08 14:02 ` Michal Marek
2 siblings, 0 replies; 5+ messages in thread
From: Arnaud Lacombe @ 2011-08-04 1:53 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kernel, linux-kbuild, Arnaud Lacombe
Hi,
On Wed, Aug 3, 2011 at 9:52 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> After commit 5416857867c9cc94aba641898c567d9707de30f1, 1nohelp_text' is no
^
this should read `nohelp_text', sorry for the typo :/
- Arnaud
> longer referenced, nuke it.
>
> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
> ---
> scripts/kconfig/nconf.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
> index 39ca1f1..b113c50 100644
> --- a/scripts/kconfig/nconf.c
> +++ b/scripts/kconfig/nconf.c
> @@ -182,8 +182,6 @@ setmod_text[] = N_(
> "This feature depends on another which\n"
> "has been configured as a module.\n"
> "As a result, this feature will be built as a module."),
> -nohelp_text[] = N_(
> -"There is no help available for this option.\n"),
> load_config_text[] = N_(
> "Enter the name of the configuration file you wish to load.\n"
> "Accept the name shown to restore the configuration you\n"
> --
> 1.7.6.153.g78432
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text'
2011-08-04 1:52 [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
2011-08-04 1:52 ` [PATCH 2/2] kconfig: factor code in menu_get_ext_help() Arnaud Lacombe
2011-08-04 1:53 ` [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
@ 2011-08-08 14:02 ` Michal Marek
2 siblings, 0 replies; 5+ messages in thread
From: Michal Marek @ 2011-08-08 14:02 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kernel, linux-kbuild
On Wed, Aug 03, 2011 at 09:52:06PM -0400, Arnaud Lacombe wrote:
> After commit 5416857867c9cc94aba641898c567d9707de30f1, 1nohelp_text' is no
> longer referenced, nuke it.
>
> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
> ---
> scripts/kconfig/nconf.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
Applied to kbuild-2.6.git#kconfig.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] kconfig: factor code in menu_get_ext_help()
2011-08-04 1:52 ` [PATCH 2/2] kconfig: factor code in menu_get_ext_help() Arnaud Lacombe
@ 2011-08-08 14:03 ` Michal Marek
0 siblings, 0 replies; 5+ messages in thread
From: Michal Marek @ 2011-08-08 14:03 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kernel, linux-kbuild, Srinivas Kandagatla
On Wed, Aug 03, 2011 at 09:52:07PM -0400, Arnaud Lacombe wrote:
> Cc: Srinivas Kandagatla <srinivas.kandagatla@st.com>
> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
> ---
> scripts/kconfig/menu.c | 10 ++++------
> 1 files changed, 4 insertions(+), 6 deletions(-)
Applied to kbuild-2.6.git#kconfig.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-08 14:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04 1:52 [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
2011-08-04 1:52 ` [PATCH 2/2] kconfig: factor code in menu_get_ext_help() Arnaud Lacombe
2011-08-08 14:03 ` Michal Marek
2011-08-04 1:53 ` [PATCH 1/2] kconfig/nconf: nuke unreferenced `nohelp_text' Arnaud Lacombe
2011-08-08 14:02 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox