summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-07-26 04:13:23 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-26 07:57:16 +0400
commit165e72a6c374ed03c57d03c88406d32745e1add2 (patch)
tree6ca776305899b6187c8ecb7560e2e07a524cd163 /scripts/checkpatch.pl
parent7d2367af0b09f8028dc5c1b1919bb82d141c2afb (diff)
downloadlinux-165e72a6c374ed03c57d03c88406d32745e1add2.tar.xz
checkpatch: add __rcu as a sparse modifier
Fix "need consistent spacing around '*'" error after a __rcu sparse annotation which was caused by the missing __rcu entry in the checkpatch.pl internal list of sparse keywords. Signed-off-by: Sven Eckelmann <sven@narfation.org> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.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.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5ba62d8b5e52..63cca81b1105 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -145,7 +145,8 @@ our $Sparse = qr{
__must_check|
__init_refok|
__kprobes|
- __ref
+ __ref|
+ __rcu
}x;
# Notes to $Attribute: