[dpdk-dev] [PATCH] ixgbe: change assignation of bitfields to fix clang compilation

2014-12-01 Thread Thomas Monjalon
> > Commit 1224decaa44b3dba58e0a524fd0383969929c575 changed the way > > the bitfields are assigned in ixgbe, example: > > > > tx_offload_mask.l2_len = ~0; > > > > This result in a compilation error with clang: > > > >error: implicit truncation from 'int' to bitfield > > changes value f

[dpdk-dev] [PATCH] ixgbe: change assignation of bitfields to fix clang compilation

2014-12-01 Thread Olivier Matz
Commit 1224decaa44b3dba58e0a524fd0383969929c575 changed the way the bitfields are assigned in ixgbe, example: tx_offload_mask.l2_len = ~0; This result in a compilation error with clang: error: implicit truncation from 'int' to bitfield changes value from -1 to 127 [-Werror,-Wbitfield-co

[dpdk-dev] [PATCH] ixgbe: change assignation of bitfields to fix clang compilation

2014-12-01 Thread Bruce Richardson
On Mon, Dec 01, 2014 at 11:36:13AM +0100, Olivier Matz wrote: > Commit 1224decaa44b3dba58e0a524fd0383969929c575 changed the way > the bitfields are assigned in ixgbe, example: > > tx_offload_mask.l2_len = ~0; > > This result in a compilation error with clang: > >error: implicit truncation