Re: [PATCH v3 4/5] mempool: avoid floating point expression in static assertion

2024-01-17 Thread Andrew Rybchenko
On 1/16/24 21:41, Stephen Hemminger wrote: 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; yes this will cause checkpatch nag. Signed-off-by: Stephen Hemminger --- lib/mempoo

[PATCH v3 4/5] mempool: avoid floating point expression in static assertion

2024-01-16 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; yes this will cause checkpatch nag. Signed-off-by: Stephen Hemminger --- lib/mempool/rte_mempool.c | 4 +--- 1 file changed, 1 in