aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-04-30 10:59:08 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-08-18 21:58:41 -0400
commitea2c1894b66301bce565471d6914d49ce91ee015 (patch)
tree0e05173ecdf31fff1426c78cec7d549ecdb9d47a /scripts
parent74398d3224c0942c479bef76de542e95c202a478 (diff)
kconfig: do not warn about modules built in
The streamline_config.pl finds all the configs that are needed to compile the currently loaded modules. After it creates the .config file, it tests to make sure all the configs that are needed were set. It only looks at the configs that are modules, it does not look at the builtin configs. This causes unnecessary warnings about modules not being covered. Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/streamline_config.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 177490540fe6..caac952212ef 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -256,12 +256,14 @@ my %setconfigs;
256# Finally, read the .config file and turn off any module enabled that 256# Finally, read the .config file and turn off any module enabled that
257# we could not find a reason to keep enabled. 257# we could not find a reason to keep enabled.
258while(<CIN>) { 258while(<CIN>) {
259 if (/^(CONFIG.*)=m/) { 259 if (/^(CONFIG.*)=(m|y)/) {
260 if (defined($configs{$1})) { 260 if (defined($configs{$1})) {
261 $setconfigs{$1} = 1; 261 $setconfigs{$1} = $2;
262 print; 262 print;
263 } else { 263 } elsif ($2 eq "m") {
264 print "# $1 is not set\n"; 264 print "# $1 is not set\n";
265 } else {
266 print;
265 } 267 }
266 } else { 268 } else {
267 print; 269 print;