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>
This commit is contained in:
Li Zefan 2010-03-19 14:57:47 +08:00 committed by Michal Marek
parent 52b80025eb
commit da6df879b9

View File

@ -755,6 +755,7 @@ struct symbol **sym_re_search(const char *pattern)
return NULL; return NULL;
} }
} }
sym_calc_value(sym);
sym_arr[cnt++] = sym; sym_arr[cnt++] = sym;
} }
if (sym_arr) if (sym_arr)