From: Masahiro Yamada Date: Mon, 30 Sep 2024 17:02:22 +0000 (+0900) Subject: kconfig: clear expr::val_is_valid when allocated X-Git-Tag: v6.12-rc2~1^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d095547debdd26583171a6b589acbc9fd76aa9f;p=thirdparty%2Fkernel%2Flinux.git kconfig: clear expr::val_is_valid when allocated Since commit 95573cac25c6 ("kconfig: cache expression values"), xconfig emits a lot of false-positive "unmet direct dependencies" warnings. While conf_read() clears val_is_valid flags, 'make xconfig' calculates symbol values even before the conf_read() call. This is another issue that should be addressed separately, but it has revealed that the val_is_valid field is not initialized. Fixes: 95573cac25c6 ("kconfig: cache expression values") Signed-off-by: Masahiro Yamada --- diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index 78738ef412de2..16f92c4a775a1 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c @@ -47,6 +47,7 @@ static struct expr *expr_lookup(enum expr_type type, void *l, void *r) e->type = type; e->left._initdata = l; e->right._initdata = r; + e->val_is_valid = false; hash_add(expr_hashtable, &e->node, hash);