Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

checkkconfigsymbols.py: support Kconfig's 'imply' statement

Support the new imply statement in Kconfig. The imply statement has
been added by commit 237e3ad0f195 ("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 <andreas.ziegler@fau.de>
Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Valentin Rothberg and committed by
Greg Kroah-Hartman
3b28f4f2 47f60a01

+1 -1
+1 -1
scripts/checkkconfigsymbols.py
··· 24 24 DEF = r"^\s*(?:menu){,1}config\s+(" + SYMBOL + r")\s*" 25 25 EXPR = r"(?:" + OPERATORS + r"|\s|" + SYMBOL + r")+" 26 26 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 28 28 SOURCE_SYMBOL = r"(?:\W|\b)+[D]{,1}CONFIG_(" + SYMBOL + r")" 29 29 30 30 # regex objects