Re: [PATCH 08/10] test-pmd: declare lcore_count atomic when using C11 memory model

2025-02-11 Thread Andre Muezerie
On Tue, Feb 11, 2025 at 02:12:12PM -0800, Stephen Hemminger wrote: > On Tue, 11 Feb 2025 14:02:04 -0800 > Andre Muezerie wrote: > > > Compiling with MSVC results in the error below: > > > > app/test/test_ring_perf.c(197): error C7712: address argument to atomic > > operation must be a pointe

Re: [PATCH 08/10] test-pmd: declare lcore_count atomic when using C11 memory model

2025-02-11 Thread fengchengwen
Signed-off-by: Chengwen Feng On 2025/2/12 6:02, Andre Muezerie wrote: > Compiling with MSVC results in the error below: > > app/test/test_ring_perf.c(197): error C7712: address argument to atomic > operation must be a pointer to an atomic integer, > 'volatile unsigned int *' is not valid

Re: [PATCH 08/10] test-pmd: declare lcore_count atomic when using C11 memory model

2025-02-11 Thread Stephen Hemminger
On Tue, 11 Feb 2025 14:02:04 -0800 Andre Muezerie wrote: > Compiling with MSVC results in the error below: > > app/test/test_ring_perf.c(197): error C7712: address argument to atomic > operation must be a pointer to an atomic integer, > 'volatile unsigned int *' is not valid > > The fix

[PATCH 08/10] test-pmd: declare lcore_count atomic when using C11 memory model

2025-02-11 Thread Andre Muezerie
Compiling with MSVC results in the error below: app/test/test_ring_perf.c(197): error C7712: address argument to atomic operation must be a pointer to an atomic integer, 'volatile unsigned int *' is not valid The fix is to mark lcore_count as atomic when using C11 memory model. Signed-of