Commit 327953e9 authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Linus Torvalds
Browse files

checkpatch: add check for keyword 'boolean' in Kconfig definitions

Discourage the use of keyword 'boolean' for type definition attributes of
config options as support for it will be dropped later on.


Signed-off-by: default avatarChristoph Jaeger <>
Suggested-by: default avatarDaniel Borkmann <>
Cc: Joe Perches <>
Acked-by: default avatarPaul Bolle <>
Tested-by: default avatarPaul Bolle <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent dcaf1123
......@@ -2357,6 +2357,13 @@ sub process {
"Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see\n");
# discourage the use of boolean for type definition attributes of Kconfig options
if ($realfile =~ /Kconfig/ &&
$line =~ /^\+\s*\bboolean\b/) {
"Use of boolean is deprecated, please use bool instead.\n" . $herecurr);
if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
my $flag = $1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment