From: a...@linux-foundation.org
Date: Fri, 10 Nov 2017 15:09:53 -0800

> From: Andrew Morton <a...@linux-foundation.org>
> Subject: net/sched/sch_red.c: work around gcc-4.4.4 anon union initializer 
> issue
> 
> gcc-4.4.4 (at lest) has issues with initializers and anonymous unions:
> 
> net/sched/sch_red.c: In function 'red_dump_offload':
> net/sched/sch_red.c:282: error: unknown field 'stats' specified in initializer
> net/sched/sch_red.c:282: warning: initialization makes integer from pointer 
> without a cast
> net/sched/sch_red.c:283: error: unknown field 'stats' specified in initializer
> net/sched/sch_red.c:283: warning: initialization makes integer from pointer 
> without a cast
> net/sched/sch_red.c: In function 'red_dump_stats':
> net/sched/sch_red.c:352: error: unknown field 'xstats' specified in 
> initializer
> net/sched/sch_red.c:352: warning: initialization makes integer from pointer 
> without a cast
> 
> Work around this.
> 
> Fixes: 602f3baf2218 ("net_sch: red: Add offload ability to RED qdisc")
> Cc: Nogah Frankel <nog...@mellanox.com>
> Cc: Jiri Pirko <j...@mellanox.com>
> Cc: Simon Horman <simon.hor...@netronome.com>
> Cc: David S. Miller <da...@davemloft.net>
> Signed-off-by: Andrew Morton <a...@linux-foundation.org>

Applied.

Reply via email to