summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.y
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-08-09 02:47:06 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-08-12 23:04:51 -0400
commit56869d45e364244a721de34ce9c5dc9ed022779e (patch)
treee19a163afed59f0187fbbc07783eb5cbb69157a0 /scripts/kconfig/zconf.y
parent47f38ae08df0aebb0e43fca50bf380aefea1f4d1 (diff)
kconfig: fix the rule of mainmenu_stmt symbol
The rule of mainmenu_stmt does not have debug print of zconf_lineno(), but if it had, it would print a wrong line number for the same reason as commit b2d00d7c61c8 ("kconfig: fix line numbers for if-entries in menu tree"). The mainmenu_stmt does not need to eat following empty lines because they are reduced to common_stmt. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/zconf.y')
-rw-r--r--scripts/kconfig/zconf.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index 96081aa0fef0..22fceb264cf5 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -31,7 +31,7 @@ struct symbol *symbol_hash[SYMBOL_HASHSIZE];
31static struct menu *current_menu, *current_entry; 31static struct menu *current_menu, *current_entry;
32 32
33%} 33%}
34%expect 31 34%expect 30
35 35
36%union 36%union
37{ 37{
@@ -117,7 +117,7 @@ start: mainmenu_stmt stmt_list | stmt_list;
117 117
118/* mainmenu entry */ 118/* mainmenu entry */
119 119
120mainmenu_stmt: T_MAINMENU prompt nl 120mainmenu_stmt: T_MAINMENU prompt T_EOL
121{ 121{
122 menu_add_prompt(P_MENU, $2, NULL); 122 menu_add_prompt(P_MENU, $2, NULL);
123}; 123};