checkpatch: add __rcu as a sparse modifier
PATCH 1/1 checkpatch: add __rcu as a sparse modifier
Signed-off-by Sven Eckelmann <[email protected]>
--- scripts/checkpatch.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +2 -1
@@ -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
Quoted 10 lines · Sven Eckelmann
Signed-off-by Sven Eckelmann <[email protected]>--- scripts/checkpatch.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)scripts/checkpatch.pl +0
-0
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:
Acked-by Eric Dumazet <[email protected]>
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 <[email protected]>
Cc Andy Whitcroft <[email protected]>
---
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
@@ -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