diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint index 7f042f6aff3b..04c582a34eb6 100755 --- a/util/lint/kconfig_lint +++ b/util/lint/kconfig_lint @@ -985,22 +985,22 @@ sub handle_expressions { my $balanced = qr/((?:$parens|$quotes|[^\(\)"])+)/; if ( $exprline =~ /^\s*$balanced\s*(?:\|\||&&)\s*(.+)$/ ) { - # '||' , '&&' (7)(6) + # '||' , '&&' (8)(7) my ( $lhs, $rhs ) = ( $1, $3 ); handle_expressions( $lhs, $inside_config, $filename, $line_no ); handle_expressions( $rhs, $inside_config, $filename, $line_no ); } elsif ( $exprline =~ /^\s*!(.+)$/ ) { - # '!' (5) + # '!' (6) handle_expressions( $1, $inside_config, $filename, $line_no ); } elsif ( $exprline =~ /^\s*$parens\s*$/ ) { - # '(' ')' (4) + # '(' ')' (5) $exprline =~ /^\s*\((.*)\)\s*$/; handle_expressions( $1, $inside_config, $filename, $line_no ); } - elsif ( $exprline =~ /^\s*($quotes|[^"\s]+)\s*!=$strip$/ ) { - # '!=' (3) + elsif ( $exprline =~ /^\s*($quotes|[^"\s]+)\s*(?:[<>]=?|!=)$strip$/ ) { + # '<' , '!=' , etc. (4)(3) my ( $lhs, $rhs ) = ( $1, $2 ); handle_symbol( $lhs, $filename, $line_no ); handle_symbol( $rhs, $filename, $line_no );