]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: kconfig: check help texts for menuconfig and choice
authorUlf Magnusson <ulfalizer@gmail.com>
Fri, 16 Feb 2018 20:22:54 +0000 (21:22 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:03:56 +0000 (02:03 +0900)
commitd29e6df9588b57b092afc7b5076e72f7f698b772
tree3ce778d2c94cef017e7c3f09318d29866d3fb71c
parente99b91b6bc771059f426c004f91f7205c817104c
checkpatch: kconfig: check help texts for menuconfig and choice

Currently, only Kconfig symbols are checked for a missing or short help
text, and are only checked if they are defined with the 'config'
keyword.

To make the check more general, extend it to also check help texts for
choices and for symbols defined with the 'menuconfig' keyword.

This increases the accuracy of the check for symbols that would already
have been checked as well, since e.g. a 'menuconfig' symbol after a help
text will be recognized as ending the preceding symbol/choice
definition.

To increase the accuracy of the check further, also recognize 'if',
'endif', 'menu', 'endmenu', 'endchoice', and 'source' as ending a
symbol/choice definition.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/checkpatch.pl