Revert "checkpatch: add check for keyword 'boolean' in Kconfig definitions"
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 26 Jan 2021 19:15:40 +0000 (04:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 28 Jan 2021 04:28:58 +0000 (13:28 +0900)
This reverts commit 327953e9af6c59ad111b28359e59e3ec0cbd71b6.

You cannot use 'boolean' since commit b92d804a5179 ("kconfig: drop
'boolean' keyword").

This check is no longer needed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Joe Perches <joe@perches.com>
scripts/checkpatch.pl

index 92e888e..1afe3af 100755 (executable)
@@ -3390,13 +3390,6 @@ sub process {
                        }
                }
 
-# discourage the use of boolean for type definition attributes of Kconfig options
-               if ($realfile =~ /Kconfig/ &&
-                   $line =~ /^\+\s*\bboolean\b/) {
-                       WARN("CONFIG_TYPE_BOOLEAN",
-                            "Use of boolean is deprecated, please use bool instead.\n" . $herecurr);
-               }
-
                if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) &&
                    ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) {
                        my $flag = $1;