[PATCH] checkpatch: fix false positives involving __percpu attribute

From: Scott J. Goldman
Date: Fri Jun 18 2010 - 14:17:29 EST



Signed-off-by: Scott J. Goldman <scottjg@xxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/