On Mon, May 28, 2018 at 05:03:38PM +0800, Andy Green wrote: > On gcc 5.4.0 / native aarch64 from Ubuntu 16.04: > > /home/agreen/lagopus/src/dpdk/build/include/ > rte_ring_c11_mem.h: In function > '__rte_ring_move_prod_head': > /home/agreen/lagopus/src/dpdk/build/include/ > rte_ring_c11_mem.h:69:3: warning: ISO C90 > forbids mixed declarations and code > [-Wdeclaration-after-statement] > const uint32_t cons_tail = r->cons.tail; > ^ > /home/agreen/lagopus/src/dpdk/build/include/ > rte_ring_c11_mem.h: In function > '__rte_ring_move_cons_head': > /home/agreen/lagopus/src/dpdk/build/include/ > rte_ring_c11_mem.h:136:3: warning: ISO C90 > forbids mixed declarations and code > [-Wdeclaration-after-statement] > const uint32_t prod_tail = r->prod.tail; > ^ > > Signed-off-by: Andy Green <a...@warmcat.com> > Fixes: 39368ebfc6 ("ring: introduce C11 memory model barrier option")
Acked-by: Olivier Matz <olivier.m...@6wind.com>