From 572a856b97b25e359c1468cf1b059210728b3762 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 25 Jan 2016 16:14:09 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/13458 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/lint/kconfig_lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3