Within github actions, 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: [email protected]

Signed-off-by: Bruce Richardson <[email protected]>
---
 lib/rcu/rte_rcu_qsbr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rcu/rte_rcu_qsbr.h b/lib/rcu/rte_rcu_qsbr.h
index 550fadf56a..d89a43c186 100644
--- a/lib/rcu/rte_rcu_qsbr.h
+++ b/lib/rcu/rte_rcu_qsbr.h
@@ -563,7 +563,7 @@ __rte_rcu_qsbr_check_selective(struct rte_rcu_qsbr *v, 
uint64_t t, bool wait)
                        if (c != __RTE_QSBR_CNT_THR_OFFLINE && acked_token > c)
                                acked_token = c;
 
-                       bmap &= ~(1UL << j);
+                       bmap &= ~RTE_BIT64(j);
                }
        }
 
-- 
2.51.0

Reply via email to