Re: [PATCH net-next] cgroup: fix sock_cgroup_data initialization on earlier compilers

2015-12-09 Thread David Miller
From: Tejun Heo Date: Wed, 9 Dec 2015 12:30:46 -0500 > sock_cgroup_data is a struct containing an anonymous union. > sock_cgroup_set_prioidx() and sock_cgroup_set_classid() were > initializing a field inside the anonymous union as follows. > > struct sock_ccgroup_data skcd_buf = { .val = VAL };

[PATCH net-next] cgroup: fix sock_cgroup_data initialization on earlier compilers

2015-12-09 Thread Tejun Heo
sock_cgroup_data is a struct containing an anonymous union. sock_cgroup_set_prioidx() and sock_cgroup_set_classid() were initializing a field inside the anonymous union as follows. struct sock_ccgroup_data skcd_buf = { .val = VAL }; While this is fine on more recent compilers, gcc-4.4.7 triggers