diff options
Diffstat (limited to 'extras/checkpatch.pl')
-rwxr-xr-x | extras/checkpatch.pl | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/extras/checkpatch.pl b/extras/checkpatch.pl index dee070c8c7c..205567307b1 100755 --- a/extras/checkpatch.pl +++ b/extras/checkpatch.pl @@ -2634,17 +2634,6 @@ sub process { } } -# check for new typedefs, only function parameters and sparse annotations -# make sense. - if ($line =~ /\btypedef\s/ && - $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ && - $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && - $line !~ /\b$typeTypedefs\b/ && - $line !~ /\b__bitwise(?:__|)\b/) { - WARN("NEW_TYPEDEFS", - "do not add new typedefs\n" . $herecurr); - } - # * goes on variable not on type # (char*[ const]) while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) { |