Re: [PATCH] checkpatch: teach checkpatch about rcu

From: Eric Dumazet
Date: Thu Nov 18 2010 - 12:16:01 EST


Le jeudi 18 novembre 2010 Ã 19:05 +0200, Michael S. Tsirkin a Ãcrit :
> 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;
>


Hmm, why __percpu is in $Attribute, and __rcu in $Sparse ?



--
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/