Skip to content

Commit 3b28f4f

Browse files
vrothberggregkh
authored andcommitted
checkkconfigsymbols.py: support Kconfig's 'imply' statement
Support the new imply statement in Kconfig. The imply statement has been added by commit 237e3ad ("Kconfig: Introduce the "imply" keyword") and is a weak version of a select, but the target symbol can still be turned off. Signed-off-by: Andreas Ziegler <[email protected]> Signed-off-by: Valentin Rothberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 47f60a0 commit 3b28f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/checkkconfigsymbols.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
DEF = r"^\s*(?:menu){,1}config\s+(" + SYMBOL + r")\s*"
2525
EXPR = r"(?:" + OPERATORS + r"|\s|" + SYMBOL + r")+"
2626
DEFAULT = r"default\s+.*?(?:if\s.+){,1}"
27-
STMT = r"^\s*(?:if|select|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR
27+
STMT = r"^\s*(?:if|select|imply|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR
2828
SOURCE_SYMBOL = r"(?:\W|\b)+[D]{,1}CONFIG_(" + SYMBOL + r")"
2929

3030
# regex objects

0 commit comments

Comments
 (0)