]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched/sch_prio.c: work around gcc-4.4.4 union initializer issues
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 19 Jan 2018 00:30:49 +0000 (16:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 02:11:31 +0000 (21:11 -0500)
commit467b303cc57209369226c3995798de4b718e0cba
tree850780b7e5b6a563c727f6d45d891c1d550d83c7
parent9d2dddc69b3d66a0f67aa66c4f817a3c69a2b124
net/sched/sch_prio.c: work around gcc-4.4.4 union initializer issues

gcc-4.4.4 has problems witn anon union initializers.  Work around this.

net/sched/sch_prio.c: In function 'prio_dump_offload':
net/sched/sch_prio.c:260: error: unknown field 'stats' specified in initializer
net/sched/sch_prio.c:260: warning: initialization makes integer from pointer without a cast
net/sched/sch_prio.c:261: error: unknown field 'stats' specified in initializer
net/sched/sch_prio.c:261: warning: initialization makes integer from pointer without a cast

Fixes: 63a7228f5d5b00 ("net: sch: prio: Add offload ability to PRIO qdisc")
Cc: Nogah Frankel <nogahf@mellanox.com>
Cc: Yuval Mintz <yuvalm@mellanox.com>
Cc: Jiri Pirko <jiri@mellanox.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_prio.c