summaryrefslogtreecommitdiff
path: root/util/lint
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2020-07-24 12:42:59 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-07-27 05:07:51 +0000
commita020903307b183a24e589b3f7d48ea0e598e3921 (patch)
treee4b176f4dd8264a87fc14220eee9c08bca0f3f8c /util/lint
parent552ce003a5051c3a3c49d2556072482c97773d03 (diff)
downloadcoreboot-a020903307b183a24e589b3f7d48ea0e598e3921.tar.xz
util/lint/Kconfig_lint: Update Naked BOOL reference to error
The lint-stable makefile target only watches for errors in the Kconfig file, so has not protected additional "Naked" references to BOOL type Kconfig symbols from entering the tree. Update it to an error so that they can't continue coming into the codebase. Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: Icce2a9a627c4fbcaa220df18474cb8bfea8b2a8c Reviewed-on: https://review.coreboot.org/c/coreboot/+/43826 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/lint')
-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 8ee6416a31..2341976b41 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -332,7 +332,7 @@ sub check_config_macro {
$line = $1 . $3;
if ( exists $symbols{$symbol} ) {
if ( $symbols{$symbol}{type} eq "bool" ) {
- show_warning( "Naked reference to CONFIG_$symbol used at $file:$lineno."
+ show_error( "Naked reference to CONFIG_$symbol used at $file:$lineno."
. " A 'bool' Kconfig should always be accessed through CONFIG($symbol)." );
}
} else {