On Wed, Mar 25, 2026 at 12:10 PM Nawal Kishor <[email protected]> wrote: > > Add __attribute__((may_alias)) to the CN20K-specific NPA structures > (npa_cn20k_aura_s, npa_cn20k_pool_s, and npa_cn20k_halo_s) to allow > safe type punning when casting between these structures and their > base types (npa_aura_s and npa_pool_s). > > This attribute tells the compiler that these structures may alias > with other types, which is necessary when casting pointers between > compatible hardware register structures that share the same memory > layout. Without this attribute, such casts violate strict aliasing > rules and can lead to incorrect compiler optimizations. > > Signed-off-by: Nawal Kishor <[email protected]>
Applied to dpdk-next-net-mrvl/for-main. Thanks

