chelsio/l2t: Annotate struct l2t_data with __counted_by
[linux-2.6-microblaze.git] / drivers / net / ethernet / chelsio / cxgb4 / l2t.c
index a10a686..1e5f5b1 100644 (file)
@@ -59,7 +59,7 @@ struct l2t_data {
        rwlock_t lock;
        atomic_t nfree;             /* number of free entries */
        struct l2t_entry *rover;    /* starting point for next allocation */
-       struct l2t_entry l2tab[];  /* MUST BE LAST */
+       struct l2t_entry l2tab[] __counted_by(l2t_size);  /* MUST BE LAST */
 };
 
 static inline unsigned int vlan_prio(const struct l2t_entry *e)