aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-07-25 20:13:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 23:57:16 -0400
commit165e72a6c374ed03c57d03c88406d32745e1add2 (patch)
tree6ca776305899b6187c8ecb7560e2e07a524cd163 /scripts/checkpatch.pl
parent7d2367af0b09f8028dc5c1b1919bb82d141c2afb (diff)
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{
145 __must_check| 145 __must_check|
146 __init_refok| 146 __init_refok|
147 __kprobes| 147 __kprobes|
148 __ref 148 __ref|
149 __rcu
149 }x; 150 }x;
150 151
151# Notes to $Attribute: 152# Notes to $Attribute: