[PATCH] checkpatch: teach checkpatch about rcu

From: Michael S. Tsirkin
Date: Thu Nov 18 2010 - 12:06:27 EST


I got this:
+ struct kvm_kernel_irq_routing_entry __rcu *irq_entry;
which is because checkpatch does not know about __rcu.
So here's a patch to teach it about that tag.

Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
---
scripts/checkpatch.pl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2039acd..1b11c8e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -143,6 +143,7 @@ our $Sparse = qr{
__must_check|
__init_refok|
__kprobes|
+ __rcu|
__ref
}x;

--
1.7.3.2.91.g446ac
--
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/