提交 f1575595 编写于 作者: M Masahiro Yamada

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 d595cea6 ("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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: NDirk Gouders <dirk@gouders.net>
上级 4bf6a9af
...@@ -1248,9 +1248,6 @@ struct symbol *sym_check_deps(struct symbol *sym) ...@@ -1248,9 +1248,6 @@ struct symbol *sym_check_deps(struct symbol *sym)
sym->flags &= ~SYMBOL_CHECK; sym->flags &= ~SYMBOL_CHECK;
} }
if (sym2 && sym2 == sym)
sym2 = NULL;
return sym2; return sym2;
} }
......
# SPDX-License-Identifier: GPL-2.0
""" """
Warn recursive inclusion. Detect recursive dependency error.
Recursive dependency should be warned. Recursive dependency should be treated as an error.
""" """
def test(conf): def test(conf):
assert conf.oldaskconfig() == 0 assert conf.oldaskconfig() == 1
assert conf.stderr_contains('expected_stderr') assert conf.stderr_contains('expected_stderr')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册