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

2024-01-18 Thread Andrew Rybchenko
On 1/17/24 21:32, Morten Brørup wrote: From: Stephen Hemminger [mailto:step...@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

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

2024-01-18 Thread Konstantin Ananyev
> 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 >

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

2024-01-17 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@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

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

2024-01-17 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 --- drivers/net/mlx