[PATCH 2/6] efd: remove unnecessary packed attributes

Stephen Hemminger stephen at networkplumber.org
Thu Oct 17 18:22:55 CEST 2024


On Thu, 17 Oct 2024 15:22:09 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:

> The structure "efd_online_group_entry" only consists of values which are
> typedefs of "uint16_t", so packing the structure has no effect. The
> "efd_online_chunk" structure has a mix of "uint8_t" and the
> "efd_online_group_entry" struct, i.e. uint16_t values, but since the
> first, uint8_t, member array is of even size, the packed attribute does
> not affect the structure layout.
> 
> Removing these packed attributes allows the library to compile cleanly
> without "-Wno-address-of-packed-member" compiler flag.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list