Skip to contentSkip to conversation

checkpatch: add __rcu as a sparse modifier

PATCH In review Sven Eckelmann 2 participants 3 messages May 8, 2011 – May 30, 2011 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: add __rcu as a sparse modifier

---
 scripts/checkpatch.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +2 -1
index d867081..9dc3800 100755
@@ -145,7 +145,8 @@ our $Sparse	= qr{
 			__must_check|
 			__init_refok|
 			__kprobes|
-			__ref
+			__ref|
+			__rcu
 		}x;
 
 # Notes to $Attribute:
Signature · 1 line
1.7.5.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Sven Eckelmann
---
 scripts/checkpatch.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +0 -0
index d867081..9dc3800 100755

scripts/checkpatch.pl our $Sparse = qr{ · line 152

Quoted 9 lines
scripts/checkpatch.pl +2 -1
@@ -145,7 +145,8 @@ our $Sparse	= qr{
 			__must_check|
 			__init_refok|
 			__kprobes|
-			__ref
+			__ref|
+			__rcu
 		}x;
 
 # Notes to $Attribute:
#2 lore raw
In reply to Sven Eckelmann

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.

---
I reported that problem 2 1/2 months ago and then send the patch 3 weeks ago, but never got a reaction. Therefore I resend the patch to Andrew Morton instead of Andy Whitcroft. He seems to have been responsible for the last checkpatch.pl-patches.

Btw. thanks Eric Dumazet for the Acked-by.

 scripts/checkpatch.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +2 -1
index d867081..9dc3800 100755
@@ -145,7 +145,8 @@ our $Sparse	= qr{
 			__must_check|
 			__init_refok|
 			__kprobes|
-			__ref
+			__ref|
+			__rcu
 		}x;
 
 # Notes to $Attribute:
Signature · 1 line
1.7.5.3