Commit 8054576dca7e76dd1f58c525af3309cfc9c74454

Authored by Andy Whitcroft
Committed by Linus Torvalds
1 parent 080ba92965

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/checkpatch.pl
... ... @@ -1618,7 +1618,7 @@
1618 1618 # check for new typedefs, only function parameters and sparse annotations
1619 1619 # make sense.
1620 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 1622 $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ &&
1623 1623 $line !~ /\b$typeTypedefs\b/ &&
1624 1624 $line !~ /\b__bitwise(?:__|)\b/) {