diff options
author | Andy Whitcroft <apw@canonical.com> | 2009-01-06 14:41:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 15:59:17 -0800 |
commit | 8054576dca7e76dd1f58c525af3309cfc9c74454 (patch) | |
tree | f603d38b1ecbfaae5953dc32e0f9dae0b8c1bad6 /scripts | |
parent | 080ba929651a32f1840751d2b862e64c8ee1f0c6 (diff) | |
download | linux-8054576dca7e76dd1f58c525af3309cfc9c74454.tar.gz linux-8054576dca7e76dd1f58c525af3309cfc9c74454.tar.bz2 linux-8054576dca7e76dd1f58c525af3309cfc9c74454.zip |
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')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
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 { # 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*\(\s*\*?$Ident\s*\)\s*\(/ && $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && $line !~ /\b$typeTypedefs\b/ && $line !~ /\b__bitwise(?:__|)\b/) { |