Re: [PATCH v3][next] net/mlx5e: Avoid a hundred -Wflex-array-member-not-at-end warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 26 Feb 2025 13:47:32 +1030 you wrote:
> -Wflex-array-member-not-at-end was introduced in GCC-14, and we are
> getting ready to enable it, globally.
> 
> So, in this particular case, we create a new `struct mlx5e_umr_wqe_hdr`
> to enclose the header part of flexible structure `struct mlx5e_umr_wqe`.
> This is, all the members except the flexible arrays `inline_mtts`,
> `inline_klms` and `inline_ksms` in the anonymous union. We then replace
> the header part with `struct mlx5e_umr_wqe_hdr hdr;` in `struct
> mlx5e_umr_wqe`, and change the type of the object currently causing
> trouble `umr_wqe` from `struct mlx5e_umr_wqe` to `struct
> mlx5e_umr_wqe_hdr` --this last bit gets rid of the flex-array-in-the-middle
> part and avoid the warnings.
> 
> [...]

Here is the summary with links:
  - [v3,next] net/mlx5e: Avoid a hundred -Wflex-array-member-not-at-end warnings
    https://git.kernel.org/netdev/net-next/c/bf08fd32cc55

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux