[dpdk-dev] [PATCH] ixgbe: change assignation of bitfields to fix clang compilation
Thomas Monjalon
thomas.monjalon at 6wind.com
Mon Dec 1 12:20:44 CET 2014
> > 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-constant-conversion]
> >
> > Replacing the '=' with a '|=' fixes the issue.
> >
> > Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied
Thanks
--
Thomas
More information about the dev
mailing list