Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-gen: pktio: fix flexible array member error in pedantic compila…
…tion When compiling with GCC 13.1 and -Wpedantic, struct sset_info causes the error "invalid use of structure with flexible array member [-Werror=pedantic]". The flexible array member in this case is the data member of struct ethtool_sset_info. In order to reserve space for it, turn sset_info into a union, and make the next member in the union the size of struct ethtool_sset_info and the data. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
- Loading branch information