summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-25 16:14:09 -0700
committerMartin Roth <martinroth@google.com>2016-01-30 17:27:07 +0100
commit572a856b97b25e359c1468cf1b059210728b3762 (patch)
treea85d3c805b5c44e68d1b4ba68e280f2b4da8b838
parent6bfbf1c66fe321da5f7c6c8f815ea3d75107ed09 (diff)
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>
-rwxr-xr-xutil/lint/kconfig_lint2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint
index 44e898fa40..2cb125e4b8 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -253,7 +253,7 @@ sub check_is_enabled {
my $file = $1;
my $lineno = $2;
$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");
next;
}