From: Masahiro Yamada Date: Wed, 15 Aug 2018 05:59:43 +0000 (+0900) Subject: kconfig: error out when seeing recursive dependency X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=ec9933f517d25d4bb9026766916da160f10f119d kconfig: error out when seeing recursive dependency Originally, recursive dependency was a fatal error for Kconfig because Kconfig cannot compute symbol values in such a situation. Commit d595cea62403 ("kconfig: print more info when we see a recursive dependency") changed it to a warning, which I guess was not intentional. Get it back to an error again. Also, rename the unit test directory "warn_recursive_dep" to "err_recursive_dep" so that it matches to the behavior. Signed-off-by: Masahiro Yamada Tested-by: Dirk Gouders Signed-off-by: Christian Lamparter --- diff --git a/config/symbol.c b/config/symbol.c index 4ec8b1f..688f487 100644 --- a/config/symbol.c +++ b/config/symbol.c @@ -1248,9 +1248,6 @@ struct symbol *sym_check_deps(struct symbol *sym) sym->flags &= ~SYMBOL_CHECK; } - if (sym2 && sym2 == sym) - sym2 = NULL; - return sym2; }