]> git.baikalelectronics.ru Git - kernel.git/commit
sch_mqprio: Fix build with older gcc.
authorDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:44:59 +0000 (17:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:44:59 +0000 (17:44 -0500)
commit3fed92bd350f6a8a06dd1126488cd1ed40ce952f
tree7d9e24145da8527a0868f27af05753f5fb514b08
parent4244234c33c7cfe5d2f8ad1831f236e97a9895af
sch_mqprio: Fix build with older gcc.

  CC [M]  net/sched/sch_mqprio.o
net/sched/sch_mqprio.c: In function ?mqprio_init?:
net/sched/sch_mqprio.c:145: error: unknown field ?tc? specified in initializer
net/sched/sch_mqprio.c:145: warning: missing braces around initializer
net/sched/sch_mqprio.c:145: warning: (near initialization for ?tc.<anonymous>?)
make[2]: *** [net/sched/sch_mqprio.o] Error 1
make[1]: *** [net/sched] Error 2
make: *** [net] Error 2

Several people reported this, surround the unnamed union
member initialization with braces to fix.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_mqprio.c