From: "Scott J. Goldman" <scottjg@vmware.com>
To: Andy Whitcroft <apw@canonical.com>
Cc: linux-kernel@vger.kernel.org, "Scott J. Goldman" <scottjg@vmware.com>
Subject: [PATCH] checkpatch: fix false positives involving __percpu attribute
Date: Fri, 18 Jun 2010 11:07:15 -0700 [thread overview]
Message-ID: <1276884435-24898-1-git-send-email-scottjg@vmware.com> (raw)
In-Reply-To: <AANLkTinhcJAphiOo6Gj3pl7NY2oGkAwEw3xJZY_nvOxw@mail.gmail.com>
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
prev parent reply other threads:[~2010-06-18 18:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 20:26 [PATCH] checkpatch: fix false positive on casting to double pointer Scott J. Goldman
2010-06-18 13:15 ` Andy Whitcroft
2010-06-18 13:19 ` Andy Whitcroft
2010-06-18 16:11 ` Scott Goldman
2010-06-18 18:07 ` Scott J. Goldman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1276884435-24898-1-git-send-email-scottjg@vmware.com \
--to=scottjg@vmware.com \
--cc=apw@canonical.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome