]> www.infradead.org Git - users/jedix/linux-maple.git/commit
checkkconfigsymbols.py: Fix the '--ignore' option
authorAriel Marcovitch <arielmarcovitch@gmail.com>
Sun, 22 Aug 2021 19:22:01 +0000 (22:22 +0300)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 27 Aug 2021 05:07:07 +0000 (14:07 +0900)
commit26d5313d02e4c5ca05bbf01e162abad7eebda906
treed39f4b23a8a8106dffaf43788d0aa5594fe7d5bd
parenteefe4ee0bd0c214e93e359c0590179fe5acf7e1f
checkkconfigsymbols.py: Fix the '--ignore' option

It seems like the implementation of the --ignore option is broken.

In check_symbols_helper, when going through the list of files, a file is
added to the list of source files to check if it matches the ignore
pattern. Instead, as stated in the comment below this condition, the
file should be added if it doesn't match the pattern.

This means that when providing an ignore pattern, the only files that
will be checked will be the ones we want the ignore, in addition to the
Kconfig files that don't match the pattern (the check in
parse_kconfig_files is done right)

Signed-off-by: Ariel Marcovitch <arielmarcovitch@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/checkkconfigsymbols.py