Michal Suchanek 2b9e26
From ed93c1f397972bd63e607b5566948df5f4831c20 Mon Sep 17 00:00:00 2001
Michal Suchanek 2b9e26
From: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek 2b9e26
Date: Mon, 16 Jul 2018 12:52:20 +0200
Michal Suchanek 2b9e26
Subject: [PATCH] Revert "kconfig: only write '# CONFIG_FOO is not set' for
Michal Suchanek 2b9e26
 visible symbols"
Michal Suchanek 2b9e26
Michal Suchanek 2b9e26
References: bsc#1093118
Michal Suchanek 2b9e26
Patch-mainline: no, suse-specific.
Michal Suchanek 2b9e26
Michal Suchanek 2b9e26
This reverts commit f467c5640c29ad258c3cd8186a776c82fc3b8057.
Michal Suchanek 2b9e26
Michal Suchanek 2b9e26
This breaks config in our x86 builds.
Michal Suchanek 2b9e26
Michal Suchanek 2b9e26
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek 2b9e26
---
Michal Suchanek 2b9e26
 scripts/kconfig/symbol.c | 3 +--
Michal Suchanek 2b9e26
 1 file changed, 1 insertion(+), 2 deletions(-)
Michal Suchanek 2b9e26
Michal Suchanek 2b9e26
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
Michal Suchanek 2b9e26
index 7c9a88e91cfa..1b9e8370fe98 100644
Michal Suchanek 2b9e26
--- a/scripts/kconfig/symbol.c
Michal Suchanek 2b9e26
+++ b/scripts/kconfig/symbol.c
Michal Suchanek 2b9e26
@@ -397,10 +397,9 @@ void sym_calc_value(struct symbol *sym)
Michal Suchanek 2b9e26
 			if (!sym_is_choice(sym)) {
Michal Suchanek 2b9e26
 				prop = sym_get_default_prop(sym);
Michal Suchanek 2b9e26
 				if (prop) {
Michal Suchanek 2b9e26
+					sym->flags |= SYMBOL_WRITE;
Michal Suchanek 2b9e26
 					newval.tri = EXPR_AND(expr_calc_value(prop->expr),
Michal Suchanek 2b9e26
 							      prop->visible.tri);
Michal Suchanek 2b9e26
-					if (newval.tri != no)
Michal Suchanek 2b9e26
-						sym->flags |= SYMBOL_WRITE;
Michal Suchanek 2b9e26
 				}
Michal Suchanek 2b9e26
 				if (sym->implied.tri != no) {
Michal Suchanek 2b9e26
 					sym->flags |= SYMBOL_WRITE;
Michal Suchanek 2b9e26
-- 
Michal Suchanek 2b9e26
2.13.7
Michal Suchanek 2b9e26