aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2009-01-06 17:41:26 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:17 -0500
commit8054576dca7e76dd1f58c525af3309cfc9c74454 (patch)
treef603d38b1ecbfaae5953dc32e0f9dae0b8c1bad6 /scripts/checkpatch.pl
parent080ba929651a32f1840751d2b862e64c8ee1f0c6 (diff)
checkpatch: loosen spacing on typedef function checks
Loosen spacing checks to correctly detect this valid use of a typedef: typedef struct rcu_data *(*get_data_func)(int); Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 705a0439b39d..d80b55a6f89b 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1618,7 +1618,7 @@ sub process {
1618# check for new typedefs, only function parameters and sparse annotations 1618# check for new typedefs, only function parameters and sparse annotations
1619# make sense. 1619# make sense.
1620 if ($line =~ /\btypedef\s/ && 1620 if ($line =~ /\btypedef\s/ &&
1621 $line !~ /\btypedef\s+$Type\s+\(\s*\*?$Ident\s*\)\s*\(/ && 1621 $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ &&
1622 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && 1622 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
1623 $line !~ /\b$typeTypedefs\b/ && 1623 $line !~ /\b$typeTypedefs\b/ &&
1624 $line !~ /\b__bitwise(?:__|)\b/) { 1624 $line !~ /\b__bitwise(?:__|)\b/) {