summaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorAndreas Ruprecht <andreas.ruprecht@fau.de>2015-07-12 09:41:50 +0200
committerMichal Marek <mmarek@suse.com>2015-08-19 17:05:39 +0200
commitc2264564df3d70723c6d6eb96c18b99698c112fd (patch)
tree92846df16c80a4b8f85666bbfb953ed959ca75fc /mm/migrate.c
parent35ffd08d9bc92b5d56f6536406c379d82a757e7a (diff)
downloadlinux-stable-c2264564df3d70723c6d6eb96c18b99698c112fd.tar.gz
linux-stable-c2264564df3d70723c6d6eb96c18b99698c112fd.tar.bz2
linux-stable-c2264564df3d70723c6d6eb96c18b99698c112fd.zip
kconfig: warn of unhandled characters in Kconfig commands
In Kconfig, definitions of options take the following form: "<COMMAND> <PARAM> <PARAM> ...". COMMANDs and PARAMs are treated slightly different by the underlying parser. While commit 2e0d737fc76f ("kconfig: don't silently ignore unhandled characters") introduced a warning for unsupported characters around PARAMs, it does not cover situations where a COMMAND has additional characters before it. This change makes Kconfig emit a warning if superfluous characters are found before COMMANDs. As the 'help' statement sometimes is written as '---help---', the '-' character would now also be regarded as unhandled and generate a warning. To avoid that, '-' is added to the list of allowed characters, and the token '---help---' is included in the zconf.gperf file. Reported-by: Valentin Rothberg <valentinrothberg@gmail.com> Signed-off-by: Andreas Ruprecht <andreas.ruprecht@fau.de> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com> Tested-by: Ulf Magnusson <ulfalizer@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions