[PATCH v2] common/sfc: replace out of bounds condition with static_assert

Morten Brørup mb at smartsharesystems.com
Sat Jan 20 08:53:25 CET 2024


> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Friday, 19 January 2024 23.14
> 
> The sfc base code had its own definition of static assertions
> using the out of bound array access hack. Replace it with a
> static_assert like rte_common.h.
> 
> Fixes: f67e4719147d ("net/sfc/base: fix coding style")
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> ---

Reviewed-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list