@@ -664,7 +664,7 @@ static inline void netdev_queue_numa_node_write(struct netdev_queue *q, int node
664664struct rps_map {
665665 unsigned int len ;
666666 struct rcu_head rcu ;
667- u16 cpus [0 ];
667+ u16 cpus [];
668668};
669669#define RPS_MAP_SIZE (_num ) (sizeof(struct rps_map) + ((_num) * sizeof(u16)))
670670
@@ -686,7 +686,7 @@ struct rps_dev_flow {
686686struct rps_dev_flow_table {
687687 unsigned int mask ;
688688 struct rcu_head rcu ;
689- struct rps_dev_flow flows [0 ];
689+ struct rps_dev_flow flows [];
690690};
691691#define RPS_DEV_FLOW_TABLE_SIZE (_num ) (sizeof(struct rps_dev_flow_table) + \
692692 ((_num) * sizeof(struct rps_dev_flow)))
@@ -704,7 +704,7 @@ struct rps_dev_flow_table {
704704struct rps_sock_flow_table {
705705 u32 mask ;
706706
707- u32 ents [0 ] ____cacheline_aligned_in_smp ;
707+ u32 ents [] ____cacheline_aligned_in_smp ;
708708};
709709#define RPS_SOCK_FLOW_TABLE_SIZE (_num ) (offsetof(struct rps_sock_flow_table, ents[_num]))
710710
@@ -767,7 +767,7 @@ struct xps_map {
767767 unsigned int len ;
768768 unsigned int alloc_len ;
769769 struct rcu_head rcu ;
770- u16 queues [0 ];
770+ u16 queues [];
771771};
772772#define XPS_MAP_SIZE (_num ) (sizeof(struct xps_map) + ((_num) * sizeof(u16)))
773773#define XPS_MIN_MAP_ALLOC ((L1_CACHE_ALIGN(offsetof(struct xps_map, queues[1])) \
@@ -778,7 +778,7 @@ struct xps_map {
778778 */
779779struct xps_dev_maps {
780780 struct rcu_head rcu ;
781- struct xps_map __rcu * attr_map [0 ]; /* Either CPUs map or RXQs map */
781+ struct xps_map __rcu * attr_map []; /* Either CPUs map or RXQs map */
782782};
783783
784784#define XPS_CPU_DEV_MAPS_SIZE (_tcs ) (sizeof(struct xps_dev_maps) + \
0 commit comments