[dpdk-dev] [PATCH v2] net: fix compilation with pedantic enabled

Ferruh Yigit ferruh.yigit at intel.com
Tue Jul 21 17:43:38 CEST 2020


On 7/21/2020 9:31 AM, Raslan Darawsheh wrote:
> when trying to compile rte_mpls with pedantic enabled,
> on old compilers like 4.8 it will complain about bit field definition.
> 
> error: type of bit-field 'bs' is a GCC extension [-Werror=pedantic]
> error: type of bit-field 'tc' is a GCC extension [-Werror=pedantic]
> error: type of bit-field 'tag_lsb' is a GCC extension [-Werror=pedantic]
> 
> This fixes the compilation error by adding extension to the header
> definition.
> 
> Fixes: e480cf487a0d ("net: add MPLS header structure")
> Cc: olivier.matz at 6wind.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list