* [PATCH] kconfig: Clarify menu and 'if' dependency propagation
@ 2018-01-16 20:39 Ulf Magnusson
2018-01-21 16:43 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Magnusson @ 2018-01-16 20:39 UTC (permalink / raw)
To: linux-kbuild; +Cc: yamada.masahiro, sam, linux-kernel, Ulf Magnusson
It is not obvious that the last two cases refer to menus and ifs,
respectively, in the conditional that sets 'parentdep'.
Automatic submenu creation is done later, so the parent can't be a
symbol here.
No functional changes. Only comments added.
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
| 2 ++
1 file changed, 2 insertions(+)
--git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 92d3f06cd8a2..b81c9b053f6e 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -325,8 +325,10 @@ void menu_finalize(struct menu *parent)
}
parentdep = expr_alloc_symbol(sym);
} else if (parent->prompt)
+ /* Menu node for 'menu' */
parentdep = parent->prompt->visible.expr;
else
+ /* Menu node for 'if' */
parentdep = parent->dep;
/* For each child menu node... */
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-21 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16 20:39 [PATCH] kconfig: Clarify menu and 'if' dependency propagation Ulf Magnusson
2018-01-21 16:43 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox