kconfig: recalc symbol value before showing search results
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 19 Mar 2010 06:57:47 +0000 (14:57 +0800)
committerMichal Marek <mmarek@suse.cz>
Tue, 23 Mar 2010 11:29:07 +0000 (12:29 +0100)
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

index 9ee3923117ee5e03524dacaedbc9bfb2889772ab..2e7a048e0cfceb32970d4d0a6fa8b211d70ef83e 100644 (file)
@@ -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)