Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

streamline_config.pl: remove prompt warnings for configs with defaults

Ignore process select warnings for config entries that have a default
option. Some config entries have no prompt, and nothing selects them, but
these config options are okay because they have a default option.

Signed-off-by: David Hunter <david.hunter.linux@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

David Hunter and committed by
Masahiro Yamada
bf98f6d1 90edd30b

+12 -2
+12 -2
scripts/kconfig/streamline_config.pl
··· 144 144 my %prompts; 145 145 my %objects; 146 146 my %config2kfile; 147 + my %defaults; 147 148 my $var; 148 149 my $iflevel = 0; 149 150 my @ifdeps; ··· 223 222 $depends{$config} .= " " . $1; 224 223 } elsif ($state ne "NONE" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) { 225 224 my $dep = $3; 225 + $defaults{$config} = 1; 226 226 if ($dep !~ /^\s*(y|m|n)\s*$/) { 227 227 $dep =~ s/.*\sif\s+//; 228 228 $depends{$config} .= " " . $dep; ··· 525 523 526 524 # If no possible config selected this, then something happened. 527 525 if (!defined($next_config)) { 528 - print STDERR "WARNING: $config is required, but nothing in the\n"; 529 - print STDERR " current config selects it.\n"; 526 + 527 + # Some config options have no prompt, and nothing selects them, but 528 + # they stay turned on once the final checks for the configs 529 + # are done. These configs have a default option, so turn off the 530 + # warnings for configs with default options. 531 + if (!defined($defaults{$config})) { 532 + print STDERR "WARNING: $config is required, but nothing in the\n"; 533 + print STDERR " current config selects it.\n"; 534 + } 535 + 530 536 return; 531 537 } 532 538