ethdev: fix build with strict flags
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 13 Apr 2017 05:29:27 +0000 (08:29 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Apr 2017 13:33:51 +0000 (15:33 +0200)
commited1df6c569ae6b83666b593e10ea53c88d3843de
tree7cf2d82669f371dc4922329bed139923522ae011
parent27e9fb84597e216b9ac65a6839dc710dd1ceaeb2
ethdev: fix build with strict flags

Compilation error seen while compiling mlx5 in debug mode
under RHEL 7.3:

rte_ethdev.h:1670:7: error: type of bit-field 'state' is a GCC extension
    [-Werror=pedantic]

Address it by removing the unnecessary bit-field width limitation.

Fixes: d52268a8b24b ("ethdev: expose device states")

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_ether/rte_ethdev.h