Re: [PATCH] lib/lpm: use standard atomic_store_explicit

2024-12-04 Thread Andre Muezerie
On Wed, Dec 04, 2024 at 04:52:43PM +, Bruce Richardson wrote: > On Wed, Dec 04, 2024 at 08:20:19AM -0800, Andre Muezerie wrote: > > On Wed, Dec 04, 2024 at 08:56:35AM +0100, David Marchand wrote: > > > Hello Andre, > > > > > > On Wed, Dec 4, 2024 at 3:20 AM Andre Muezerie > > > wrote: > > > >

Re: [PATCH] lib/lpm: use standard atomic_store_explicit

2024-12-04 Thread Bruce Richardson
On Wed, Dec 04, 2024 at 08:20:19AM -0800, Andre Muezerie wrote: > On Wed, Dec 04, 2024 at 08:56:35AM +0100, David Marchand wrote: > > Hello Andre, > > > > On Wed, Dec 4, 2024 at 3:20 AM Andre Muezerie > > wrote: > > > > > > MSVC issues the warning below: > > > > > > ../lib/lpm/rte_lpm.c(297): war

Re: [PATCH] lib/lpm: use standard atomic_store_explicit

2024-12-04 Thread Andre Muezerie
On Wed, Dec 04, 2024 at 08:56:35AM +0100, David Marchand wrote: > Hello Andre, > > On Wed, Dec 4, 2024 at 3:20 AM Andre Muezerie > wrote: > > > > MSVC issues the warning below: > > > > ../lib/lpm/rte_lpm.c(297): warning C4013 > > '__atomic_store' undefined; assuming extern returning int > > .

Re: [PATCH] lib/lpm: use standard atomic_store_explicit

2024-12-03 Thread David Marchand
Hello Andre, On Wed, Dec 4, 2024 at 3:20 AM Andre Muezerie wrote: > > MSVC issues the warning below: > > ../lib/lpm/rte_lpm.c(297): warning C4013 > '__atomic_store' undefined; assuming extern returning int > ../lib/lpm/rte_lpm.c(298): error C2065: > '__ATOMIC_RELAXED': undeclared identifi

[PATCH] lib/lpm: use standard atomic_store_explicit

2024-12-03 Thread Andre Muezerie
MSVC issues the warning below: ../lib/lpm/rte_lpm.c(297): warning C4013 '__atomic_store' undefined; assuming extern returning int ../lib/lpm/rte_lpm.c(298): error C2065: '__ATOMIC_RELAXED': undeclared identifier The fix is to use standard atomic_store_explicit() instead of gcc specific __