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

2024-01-19 Thread Slava Ovsiienko
rad ; Morten Brørup > Subject: [PATCH v5 5/6] mempool: avoid floating point expression in static > assertion > > 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 e

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

2024-01-18 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, 18 January 2024 17.51 > > 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 i

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

2024-01-18 Thread Stephen Hemminger
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 Acked-by: Konstantin