[PATCH v4 5/6] mempool: avoid floating point expression in static assertion

Morten Brørup mb at smartsharesystems.com
Wed Jan 17 19:32:41 CET 2024


> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Wednesday, 17 January 2024 19.20
> 
> Clang does not handle casts in static_assert() expressions.
> It doesn't like use of floating point to calculate threshold.
> Use a different expression with same effect.
> 
> Modify comment in mlx5 so that developers don't go searching
> for old value.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

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



More information about the dev mailing list