Linus Torvalds writes: (Summary) wrote:
I think we've seen this before, and I think there was some trick to make it work with older gcc versions.
make it work with older gcc versions.
Maybe the unnamed entry that gets initialized had to be declared first, and the initializer needed an extra set of braces? Doing some log digging gives me
Doing some log digging gives me
ee9d3429c0e4 ("net/sched/sch_red.c: work around gcc-4.4.4 anon union initializer issue")
[...]
an anonymous union.I think we've seen this before, and I think there was some trick to make it work with older gcc versions.
make it work with older gcc versions.
Maybe the unnamed entry that gets initialized had to be declared first, and the initializer needed an extra set of braces? Doing some log digging gives me
Doing some log digging gives me
ee9d3429c0e4 ("net/sched/sch_red.c: work around gcc-4.4.4 anon union initializer issue")
aa4bf44dc851 ("userns: use union in {g,u}idmap struct") 6c09ffd02725 ("irqchip/gic-v4: Fix building with ancient gcc") c848c49a62b3 ("drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4") but they aren't necessarily _exactly_ the same issue.