Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'net-zl-array'

More zero-length array transformations from Gustavo A. R. Silva.

Signed-off-by: David S. Miller <davem@davemloft.net>

+18 -18
+1 -1
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h
··· 225 225 struct offload_port_info ports; 226 226 struct offload_ka_info kas; 227 227 struct offload_rr_info rrs; 228 - u8 buf[0]; 228 + u8 buf[]; 229 229 }; 230 230 231 231 struct __packed hw_atl_utils_fw_rpc {
+1 -1
drivers/net/ethernet/brocade/bna/bnad.h
··· 253 253 int alloc_order; 254 254 u32 map_size; 255 255 enum bnad_rxbuf_type type; 256 - struct bnad_rx_unmap unmap[0] ____cacheline_aligned; 256 + struct bnad_rx_unmap unmap[] ____cacheline_aligned; 257 257 }; 258 258 259 259 #define BNAD_PCI_DEV_IS_CAT2(_bnad) \
+1 -1
drivers/net/ethernet/tehuti/tehuti.h
··· 330 330 u16 length; 331 331 u32 va_lo; 332 332 u32 va_hi; 333 - struct pbl pbl[0]; /* Fragments */ 333 + struct pbl pbl[]; /* Fragments */ 334 334 } __packed; 335 335 336 336 /* Register region size */
+3 -3
drivers/net/usb/r8152.c
··· 891 891 struct fw_header { 892 892 u8 checksum[32]; 893 893 char version[RTL_VER_SIZE]; 894 - struct fw_block blocks[0]; 894 + struct fw_block blocks[]; 895 895 } __packed; 896 896 897 897 /** ··· 930 930 __le32 reserved; 931 931 __le16 fw_ver_reg; 932 932 u8 fw_ver_data; 933 - char info[0]; 933 + char info[]; 934 934 } __packed; 935 935 936 936 /** ··· 982 982 __le16 bp_start; 983 983 __le16 bp_num; 984 984 __le16 bp[4]; 985 - char info[0]; 985 + char info[]; 986 986 } __packed; 987 987 988 988 enum rtl_fw_type {
+5 -5
include/linux/netdevice.h
··· 664 664 struct rps_map { 665 665 unsigned int len; 666 666 struct rcu_head rcu; 667 - u16 cpus[0]; 667 + u16 cpus[]; 668 668 }; 669 669 #define RPS_MAP_SIZE(_num) (sizeof(struct rps_map) + ((_num) * sizeof(u16))) 670 670 ··· 686 686 struct rps_dev_flow_table { 687 687 unsigned int mask; 688 688 struct rcu_head rcu; 689 - struct rps_dev_flow flows[0]; 689 + struct rps_dev_flow flows[]; 690 690 }; 691 691 #define RPS_DEV_FLOW_TABLE_SIZE(_num) (sizeof(struct rps_dev_flow_table) + \ 692 692 ((_num) * sizeof(struct rps_dev_flow))) ··· 704 704 struct rps_sock_flow_table { 705 705 u32 mask; 706 706 707 - u32 ents[0] ____cacheline_aligned_in_smp; 707 + u32 ents[] ____cacheline_aligned_in_smp; 708 708 }; 709 709 #define RPS_SOCK_FLOW_TABLE_SIZE(_num) (offsetof(struct rps_sock_flow_table, ents[_num])) 710 710 ··· 767 767 unsigned int len; 768 768 unsigned int alloc_len; 769 769 struct rcu_head rcu; 770 - u16 queues[0]; 770 + u16 queues[]; 771 771 }; 772 772 #define XPS_MAP_SIZE(_num) (sizeof(struct xps_map) + ((_num) * sizeof(u16))) 773 773 #define XPS_MIN_MAP_ALLOC ((L1_CACHE_ALIGN(offsetof(struct xps_map, queues[1])) \ ··· 778 778 */ 779 779 struct xps_dev_maps { 780 780 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 */ 782 782 }; 783 783 784 784 #define XPS_CPU_DEV_MAPS_SIZE(_tcs) (sizeof(struct xps_dev_maps) + \
+1 -1
include/net/inet_sock.h
··· 52 52 unsigned char router_alert; 53 53 unsigned char cipso; 54 54 unsigned char __pad2; 55 - unsigned char __data[0]; 55 + unsigned char __data[]; 56 56 }; 57 57 58 58 struct ip_options_rcu {
+1 -1
include/net/ip6_fib.h
··· 198 198 199 199 struct rcu_head rcu; 200 200 struct nexthop *nh; 201 - struct fib6_nh fib6_nh[0]; 201 + struct fib6_nh fib6_nh[]; 202 202 }; 203 203 204 204 struct rt6_info {
+2 -2
include/net/ip_fib.h
··· 153 153 bool nh_updated; 154 154 struct nexthop *nh; 155 155 struct rcu_head rcu; 156 - struct fib_nh fib_nh[0]; 156 + struct fib_nh fib_nh[]; 157 157 }; 158 158 159 159 ··· 250 250 int tb_num_default; 251 251 struct rcu_head rcu; 252 252 unsigned long *tb_data; 253 - unsigned long __data[0]; 253 + unsigned long __data[]; 254 254 }; 255 255 256 256 struct fib_dump_filter {
+1 -1
include/net/mip6.h
··· 25 25 __u8 ip6mh_reserved; 26 26 __u16 ip6mh_cksum; 27 27 /* Followed by type specific messages */ 28 - __u8 data[0]; 28 + __u8 data[]; 29 29 } __packed; 30 30 31 31 #define IP6_MH_TYPE_BRR 0 /* Binding Refresh Request */
+2 -2
include/uapi/linux/net_dropmon.h
··· 29 29 30 30 struct net_dm_config_msg { 31 31 __u32 entries; 32 - struct net_dm_config_entry options[0]; 32 + struct net_dm_config_entry options[]; 33 33 }; 34 34 35 35 struct net_dm_alert_msg { 36 36 __u32 entries; 37 - struct net_dm_drop_point points[0]; 37 + struct net_dm_drop_point points[]; 38 38 }; 39 39 40 40 struct net_dm_user_msg {