Messages in this thread Patch in this message | | | From | "Scott J. Goldman" <> | Subject | [PATCH] checkpatch: fix false positives involving __percpu attribute | Date | Fri, 18 Jun 2010 11:07:15 -0700 |
| |
Signed-off-by: Scott J. Goldman <scottjg@vmware.com> --- scripts/checkpatch.pl | 3 ++- tests/t/t7005-attr-matcher | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 87bbb8b..d701956 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -150,7 +150,8 @@ our $Attribute = qr{ ____cacheline_aligned| ____cacheline_aligned_in_smp| ____cacheline_internodealigned_in_smp| - __weak + __weak| + __percpu }x; our $Modifier; our $Inline = qr{inline|__always_inline|noinline}; diff --git a/tests/t/t7005-attr-matcher b/tests/t/t7005-attr-matcher index a50405f..738da4c 100755 --- a/tests/t/t7005-attr-matcher +++ b/tests/t/t7005-attr-matcher @@ -31,6 +31,8 @@ attr "____cacheline_internodealigned_in_smp" attr "__weak" +attr "__percpu" + attr "__user" attr "__kernel" attr "__force" -- 1.6.0.3
| |