Re: [PATCH] net/mlx5: fix the building with flexible array

2022-10-31 Thread Thomas Monjalon
31/10/2022 19:24, Bing Zhao: > With some higher GCC/CLANG version, it is not recommended to use a > structure with a tailing flexible array inside another structure. > Accessing this array may be considered as a risk to corrupt the > following field even if it is by intention. > > The error below

[PATCH] net/mlx5: fix the building with flexible array

2022-10-31 Thread Bing Zhao
With some higher GCC/CLANG version, it is not recommended to use a structure with a tailing flexible array inside another structure. Accessing this array may be considered as a risk to corrupt the following field even if it is by intention. The error below was observed: drivers/net/mlx5/linux/m