summaryrefslogtreecommitdiffstats
path: root/scripts/check-configs.pl
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2018-11-08 13:32:16 +0100
committerJustin M. Forbes <jforbes@fedoraproject.org>2018-11-08 10:38:58 -0600
commitb8c626ce781547f6755a7e15e2a01070433ea034 (patch)
tree523b35bcb7a5472ba55b53d98895c678d9cb2ed3 /scripts/check-configs.pl
parent0979d54b300d591a65bddd48dcd93ed0c7a5ac93 (diff)
downloadkernel-b8c626ce781547f6755a7e15e2a01070433ea034.tar.gz
kernel-b8c626ce781547f6755a7e15e2a01070433ea034.tar.xz
kernel-b8c626ce781547f6755a7e15e2a01070433ea034.zip
Adjust grep pattern for finding Kconfig symbols
This script detects unknown Kconfig symbols by checking whether the Kconfig macros used in the various *.config files have a corresponding Kconfig symbol in the tree. Its core test is done with grep(). It turns out that match pattern used in grep() is too broad. For instance, it doesn't report CONFIG_ACPI_PROCFS as unknown because there is a Kconfig entry for ACPI_PROCFS_POWER in the tree. Make the pattern match Kconfig symbols exactly to correct this. Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Diffstat (limited to 'scripts/check-configs.pl')
-rw-r--r--scripts/check-configs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/check-configs.pl b/scripts/check-configs.pl
index 39df8f4ad..c74acf1d4 100644
--- a/scripts/check-configs.pl
+++ b/scripts/check-configs.pl
@@ -74,7 +74,7 @@ sub main {
my (@tmp) = parse_shipped( $shipped );
foreach my $ref ( @tmp ) {
say( STDERR "$shipped:$ref->[0]: No Kconfig symbol matches 'CONFIG_$ref->[1]'" )
- unless (grep( /$ref->[1]/, keys( %configs )));
+ unless (grep( /^$ref->[1]$/, keys( %configs )));
}
}