summaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-11 14:00:57 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-15 11:45:22 +0300
commit4b5ec81bfeda09bda9cd8f545226c65291e4952b (patch)
tree074289b61c43f2d49a31ef8a165829376c5ddddd /scripts/kconfig
parent1f31be9ec0a9d59053fb3d78591f6dd7a64a174e (diff)
downloadlinux-4b5ec81bfeda09bda9cd8f545226c65291e4952b.tar.xz
kconfig: rename depends_list to comment_option_list
Now the comment_stmt is the only user of depends_list. Rename it to comment_option_list Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/zconf.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y
index 7cc824454e54..7a4bc5826723 100644
--- a/scripts/kconfig/zconf.y
+++ b/scripts/kconfig/zconf.y
@@ -379,7 +379,12 @@ comment: T_COMMENT prompt T_EOL
printd(DEBUG_PARSE, "%s:%d:comment\n", zconf_curname(), zconf_lineno());
};
-comment_stmt: comment depends_list
+comment_stmt: comment comment_option_list
+;
+
+comment_option_list:
+ /* empty */
+ | comment_option_list depends
;
/* help option */
@@ -408,11 +413,6 @@ help: help_start T_HELPTEXT
/* depends option */
-depends_list:
- /* empty */
- | depends_list depends
-;
-
depends: T_DEPENDS T_ON expr T_EOL
{
menu_add_dep($3);