Skip to content

Commit 8d09554

Browse files
committed
kconfig: clear expr::val_is_valid when allocated
Since commit 95573ca ("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: 95573ca ("kconfig: cache expression values") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 4d46b5b commit 8d09554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/kconfig/expr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ static struct expr *expr_lookup(enum expr_type type, void *l, void *r)
4747
e->type = type;
4848
e->left._initdata = l;
4949
e->right._initdata = r;
50+
e->val_is_valid = false;
5051

5152
hash_add(expr_hashtable, &e->node, hash);
5253

0 commit comments

Comments
 (0)