diff options
| author | Ingo Molnar <mingo@elte.hu> | 2011-01-05 08:22:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2011-01-05 08:22:10 -0500 |
| commit | aef1b9cef78ae65c6501850851cc3f61f9be477b (patch) | |
| tree | 9769972983e84620df17c13b73f70a8341c4b125 /scripts | |
| parent | 20c457b8587bee4644d998331d9e13be82e05b4c (diff) | |
| parent | 3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5 (diff) | |
Merge commit 'v2.6.37' into perf/core
Merge reason: Add the final .37 tree.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index b9d9aa18e6d6..5f77dcb8977e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
| @@ -140,6 +140,20 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e | |||
| 140 | } | 140 | } |
| 141 | if (current_entry->prompt && current_entry != &rootmenu) | 141 | if (current_entry->prompt && current_entry != &rootmenu) |
| 142 | prop_warn(prop, "prompt redefined"); | 142 | prop_warn(prop, "prompt redefined"); |
| 143 | |||
| 144 | /* Apply all upper menus' visibilities to actual prompts. */ | ||
| 145 | if(type == P_PROMPT) { | ||
| 146 | struct menu *menu = current_entry; | ||
| 147 | |||
| 148 | while ((menu = menu->parent) != NULL) { | ||
| 149 | if (!menu->visibility) | ||
| 150 | continue; | ||
| 151 | prop->visible.expr | ||
| 152 | = expr_alloc_and(prop->visible.expr, | ||
| 153 | menu->visibility); | ||
| 154 | } | ||
| 155 | } | ||
| 156 | |||
| 143 | current_entry->prompt = prop; | 157 | current_entry->prompt = prop; |
| 144 | } | 158 | } |
| 145 | prop->text = prompt; | 159 | prop->text = prompt; |
