kconfig: recalc symbol value before showing search results

Previous thread: add random binaries to .gitignore by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 10:00 am. (1 message)

Next thread: markup_oops.pl: add options to improve cross-sompilation environments by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 9:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Tuesday, June 1, 2010 - 10:00 am

Gitweb:     http://git.kernel.org/linus/da6df879b9f88d2224174a9e4e76dc0e42e47ebc
Commit:     da6df879b9f88d2224174a9e4e76dc0e42e47ebc
Parent:     52b80025ebaa992688959b4cb2cd86c7e805b70f
Author:     Li Zefan <lizf@cn.fujitsu.com>
AuthorDate: Fri Mar 19 14:57:47 2010 +0800
Committer:  Michal Marek <mmarek@suse.cz>
CommitDate: Tue Mar 23 12:29:07 2010 +0100

    kconfig: recalc symbol value before showing search results
    
    A symbol's value won't be recalc-ed until we save config file or
    enter the menu where the symbol sits.
    
    So If I enable OPTIMIZE_FOR_SIZE, and search FUNCTION_GRAPH_TRACER:
    
      Symbol: FUNCTION_GRAPH_TRACER [=y]
      Prompt: Kernel Function Graph Tracer
        Defined at kernel/trace/Kconfig:140
        Depends on: ... [=y] && (!X86_32 [=y] || !CC_OPTIMIZE_FOR_SIZE [=y])
        ...
    
    From the dependency it should result in FUNCTION_GRAPH_TRACER=n,
    but it still shows FUNCTION_GRAPH_TRACER=y.
    
    Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
---
 scripts/kconfig/symbol.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 9ee3923..2e7a048 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -755,6 +755,7 @@ struct symbol **sym_re_search(const char *pattern)
 				return NULL;
 			}
 		}
+		sym_calc_value(sym);
 		sym_arr[cnt++] = sym;
 	}
 	if (sym_arr)
--

Previous thread: add random binaries to .gitignore by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 10:00 am. (1 message)

Next thread: markup_oops.pl: add options to improve cross-sompilation environments by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 9:59 am. (1 message)