kconfig_lint: Don't look at IS_ENABLED() text in comments.
This fixes at least one kconfig_lint warning. Change-Id: I35edf57e90315a8372aaf3b41e923cd8dad7386a Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/13458 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
6bfbf1c66f
commit
572a856b97
|
@ -253,7 +253,7 @@ sub check_is_enabled {
|
||||||
my $file = $1;
|
my $file = $1;
|
||||||
my $lineno = $2;
|
my $lineno = $2;
|
||||||
$line = $3;
|
$line = $3;
|
||||||
if ( $line !~ /(.*)IS_ENABLED\s*\(\s*CONFIG_(\w+)(.*)/ ) {
|
if ( ( $line !~ /(.*)IS_ENABLED\s*\(\s*CONFIG_(\w+)(.*)/ ) && ( $line !~ /(\/[\*\/])(.*)IS_ENABLED/ ) ) {
|
||||||
show_warning("# uninterpreted IS_ENABLED at $file:$lineno: $line");
|
show_warning("# uninterpreted IS_ENABLED at $file:$lineno: $line");
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue