All of lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/core Bug 1882] volatile not needed with atomics
@ 2026-02-17  3:46 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-02-17  3:46 UTC (permalink / raw)
  To: dev

http://bugs.dpdk.org/show_bug.cgi?id=1882

            Bug ID: 1882
           Summary: volatile not needed with atomics
           Product: DPDK
           Version: 25.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: amardeepjk@gmail.com
  Target Milestone: ---

When we use atomic in c why are we using volatile.

Is it just for old compilers/ pre c11 versions?

typedef struct __rte_capability("spinlock") {
        volatile RTE_ATOMIC(int) locked; /**< lock status 0 = unlocked, 1 =
locked */
} rte_spinlock_t;

Can i raise a patch to remove it ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-17  3:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-17  3:46 [DPDK/core Bug 1882] volatile not needed with atomics bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.