From 75c0005bcacf7208f634de8b9ab03a67e2816e20 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 2 Jun 2024 00:53:16 +0000 Subject: [PATCH] sync to torvalds/linux@83814698cf48ce3aadc5d88a3f577f04482ff92a --- .gitpicker.json | 2 +- expr.c | 2 +- expr.h | 5 ----- symbol.c | 6 ++++-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitpicker.json b/.gitpicker.json index 928925d..81646b0 100644 --- a/.gitpicker.json +++ b/.gitpicker.json @@ -2,7 +2,7 @@ { "user": "torvalds", "repo": "linux", - "branch": "9b62e02e63363f5678d5598ee7372064301587f7", + "branch": "83814698cf48ce3aadc5d88a3f577f04482ff92a", "root": "scripts/kconfig", "file": [ "lxdialog/checklist.c", diff --git a/expr.c b/expr.c index 023fd7c..06a89d2 100644 --- a/expr.c +++ b/expr.c @@ -476,7 +476,7 @@ static struct expr *expr_join_or(struct expr *e1, struct expr *e2) return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_yes); } } - if (sym1->type == S_BOOLEAN && sym1 == sym2) { + if (sym1->type == S_BOOLEAN) { if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) return expr_alloc_symbol(&symbol_yes); diff --git a/expr.h b/expr.h index 2730f91..cddbc52 100644 --- a/expr.h +++ b/expr.h @@ -302,11 +302,6 @@ static inline int expr_is_yes(struct expr *e) return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); } -static inline int expr_is_no(struct expr *e) -{ - return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); -} - #ifdef __cplusplus } #endif diff --git a/symbol.c b/symbol.c index 329df7b..4b55915 100644 --- a/symbol.c +++ b/symbol.c @@ -14,6 +14,7 @@ struct symbol symbol_yes = { .name = "y", + .type = S_TRISTATE, .curr = { "y", yes }, .menus = LIST_HEAD_INIT(symbol_yes.menus), .flags = SYMBOL_CONST|SYMBOL_VALID, @@ -21,6 +22,7 @@ struct symbol symbol_yes = { struct symbol symbol_mod = { .name = "m", + .type = S_TRISTATE, .curr = { "m", mod }, .menus = LIST_HEAD_INIT(symbol_mod.menus), .flags = SYMBOL_CONST|SYMBOL_VALID, @@ -28,6 +30,7 @@ struct symbol symbol_mod = { struct symbol symbol_no = { .name = "n", + .type = S_TRISTATE, .curr = { "n", no }, .menus = LIST_HEAD_INIT(symbol_no.menus), .flags = SYMBOL_CONST|SYMBOL_VALID, @@ -820,8 +823,7 @@ const char *sym_get_string_value(struct symbol *sym) case no: return "n"; case mod: - sym_calc_value(modules_sym); - return (modules_sym->curr.tri == no) ? "n" : "m"; + return "m"; case yes: return "y"; }