On Tue, Mar 1, 2016 at 10:21 AM, Sowmini Varadhan <sowmini.varad...@oracle.com> wrote: > On (03/01/16 10:13), Cong Wang wrote: >> > net/sched/sch_mqprio.c: In function `mqprio_init': >> > net/sched/sch_mqprio.c:145: error: unknown field `tc' specified in >> > initializer > : >> Why not just initialize these fields explicitly? For example, >> >> + struct tc_to_netdev tc; > : >> + tc.type = TC_SETUP_MQPRIO; > > The compiler error is for fields within the union which lacks > both a tag and a union-name. So I'm not sure how the above will > help. >
Come on.. we have plenty of such anonymous unions in skbuff.h...