ring: fix build with icc
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Apr 2017 15:03:12 +0000 (16:03 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Apr 2017 16:20:42 +0000 (18:20 +0200)
commit3061d0d961cd1a3a40b82639b44a1efa8343acab
treed744b2bc1f1dde7f85a109251bc2d13381c862b7
parent62d3216d61945ec6a97a67b5e7292fd108f38087
ring: fix build with icc

build error:
In file included from .../lib/librte_ring/rte_ring.c(90):
.../lib/librte_ring/rte_ring.h(162):
error #1366: a reduction in alignment without the "packed" attribute
is ignored
  } __rte_cache_aligned;
      ^

Alignment attribute moved to first element of the struct

Fixes: a6619414e0a9 ("ring: make struct and macros type agnostic")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_ring/rte_ring.h