diff options
| author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2017-05-08 18:55:33 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-08 20:15:10 -0400 |
| commit | cd8618ab3df3ac6018cecb9dc626ff72c39eb503 (patch) | |
| tree | f9b42d5fae248c72e78eef5156d174891c26d8dc /scripts | |
| parent | 0cd5246bf8e61bb1f61a4bd1203573f8a9adf085 (diff) | |
checkpatch: remove obsolete CONFIG_EXPERIMENTAL checks
Config EXPERIMENTAL has been removed from kernel in 2013 (see commit
3d374d09f16f: "final removal of CONFIG_EXPERIMENTAL"), there is no any
reason to do these checks now.
Link: http://lkml.kernel.org/r/1488234097-20119-1-git-send-email-ruslan.bilovol@gmail.com
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index baa3c7be04ad..30eeba4f1602 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -2757,13 +2757,6 @@ sub process { | |||
| 2757 | #print "is_start<$is_start> is_end<$is_end> length<$length>\n"; | 2757 | #print "is_start<$is_start> is_end<$is_end> length<$length>\n"; |
| 2758 | } | 2758 | } |
| 2759 | 2759 | ||
| 2760 | # discourage the addition of CONFIG_EXPERIMENTAL in Kconfig. | ||
| 2761 | if ($realfile =~ /Kconfig/ && | ||
| 2762 | $line =~ /.\s*depends on\s+.*\bEXPERIMENTAL\b/) { | ||
| 2763 | WARN("CONFIG_EXPERIMENTAL", | ||
| 2764 | "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); | ||
| 2765 | } | ||
| 2766 | |||
| 2767 | # discourage the use of boolean for type definition attributes of Kconfig options | 2760 | # discourage the use of boolean for type definition attributes of Kconfig options |
| 2768 | if ($realfile =~ /Kconfig/ && | 2761 | if ($realfile =~ /Kconfig/ && |
| 2769 | $line =~ /^\+\s*\bboolean\b/) { | 2762 | $line =~ /^\+\s*\bboolean\b/) { |
| @@ -3157,12 +3150,6 @@ sub process { | |||
| 3157 | } | 3150 | } |
| 3158 | } | 3151 | } |
| 3159 | 3152 | ||
| 3160 | # discourage the addition of CONFIG_EXPERIMENTAL in #if(def). | ||
| 3161 | if ($line =~ /^\+\s*\#\s*if.*\bCONFIG_EXPERIMENTAL\b/) { | ||
| 3162 | WARN("CONFIG_EXPERIMENTAL", | ||
| 3163 | "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); | ||
| 3164 | } | ||
| 3165 | |||
| 3166 | # check for RCS/CVS revision markers | 3153 | # check for RCS/CVS revision markers |
| 3167 | if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) { | 3154 | if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) { |
| 3168 | WARN("CVS_KEYWORD", | 3155 | WARN("CVS_KEYWORD", |
