[dpdk-dev] [PATCH] net/mlx5: fix an uninitialised variable
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu Apr 6 13:06:30 CEST 2017
2017-04-06 11:16, Nelio Laranjeiro:
> Since patch "mbuf: structure reorganization" the compiler complains
>
> .../drivers/net/mlx5/mlx5_rxtx.c: In function ‘mlx5_rx_burst’:
> .../drivers/net/mlx5/mlx5_rxtx.c:2082:17: error: ‘len’ may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
>
> len is not initialised as it will be at the first segment of a received
> packet, but it remains hard for the compiler to determine it.
>
> Fixes: 9964b965ad69 ("net/mlx5: re-add Rx scatter support")
>
> Cc: stable at dpdk.org
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>
Applied, thanks
It is important to note that we see this error only after the mbuf rework
of 17.05, only with GCC, and only when debug is enabled.
More information about the dev
mailing list