Browse Source

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>
Sven Eckelmann 14 years ago
parent
commit
165e72a6c3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/checkpatch.pl

+ 2 - 1
scripts/checkpatch.pl

@@ -145,7 +145,8 @@ our $Sparse	= qr{
 			__must_check|
 			__must_check|
 			__init_refok|
 			__init_refok|
 			__kprobes|
 			__kprobes|
-			__ref
+			__ref|
+			__rcu
 		}x;
 		}x;
 
 
 # Notes to $Attribute:
 # Notes to $Attribute: