net/packet: Annotate struct packet_fanout with __counted_by
[linux-2.6-microblaze.git] / net / packet / internal.h
index 63f4865..d29c94c 100644 (file)
@@ -94,7 +94,7 @@ struct packet_fanout {
        spinlock_t              lock;
        refcount_t              sk_ref;
        struct packet_type      prot_hook ____cacheline_aligned_in_smp;
-       struct sock     __rcu   *arr[];
+       struct sock     __rcu   *arr[] __counted_by(max_num_members);
 };
 
 struct packet_rollover {