History

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.

Ruslan Bilovol committed 9 years ago

Commit cd8618a1 parent 0cd52461 file · +0 −13Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+0−13
@@ -2757,13 +2757,6 @@ sub process { · 2756 unmodified lines
27572757 #print "is_start<$is_start> is_end<$is_end> length<$length>\n";
27582758 }
27592759
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−
27672760 # discourage the use of boolean for type definition attributes of Kconfig options
27682761 if ($realfile =~ /Kconfig/ &&
27692762 $line =~ /^\+\s*\bboolean\b/) {
@@ -3157,12 +3150,6 @@ sub process { · 387 unmodified lines
31573150 }
31583151 }
31593152
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−
31663153 # check for RCS/CVS revision markers
31673154 if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) {
31683155 WARN("CVS_KEYWORD",