diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f130c93a5656..6afc24ba77a6 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2357,6 +2357,13 @@ sub process { | |||
2357 | "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); | 2357 | "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); |
2358 | } | 2358 | } |
2359 | 2359 | ||
2360 | # discourage the use of boolean for type definition attributes of Kconfig options | ||
2361 | if ($realfile =~ /Kconfig/ && | ||
2362 | $line =~ /^\+\s*\bboolean\b/) { | ||
2363 | WARN("CONFIG_TYPE_BOOLEAN", | ||
2364 | "Use of boolean is deprecated, please use bool instead.\n" . $herecurr); | ||
2365 | } | ||
2366 | |||
2360 | if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) && | 2367 | if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) && |
2361 | ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) { | 2368 | ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) { |
2362 | my $flag = $1; | 2369 | my $flag = $1; |