]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commit
rcu: fix build with MSVC
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 4 Dec 2025 11:29:02 +0000 (11:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Dec 2025 16:27:45 +0000 (17:27 +0100)
commitd1ab1a2facf9b823bc400e573aa39381ca7b915f
treefac2c6262e0a7f8d4e64dbcf6e037c505ceb6083
parent0ace445fc09bafa43d63155e3a44815efa262c0d
rcu: fix build with MSVC

Within GitHub actions, with MSVC 19.44.35219,
the following error can be reported:

...\rte_rcu_qsbr.h(566): error C2220:
the following warning is treated as an error
...\rte_rcu_qsbr.h(566): warning C4319:
'~': zero extending 'unsigned long' to 'uint64_t' of greater size

To fix this, replace the "1UL" with RTE_BIT64 to force a 64-bit value
on all platforms.

Fixes: 64994b56cfd7 ("rcu: add RCU library supporting QSBR mechanism")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/rcu/rte_rcu_qsbr.h