* [PATCH 0/2] Fix errors with updated MSVC in github actions
@ 2025-12-04 11:29 Bruce Richardson
2025-12-04 11:29 ` [PATCH 1/2] rcu: fix warning on Windows builds Bruce Richardson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Bruce Richardson @ 2025-12-04 11:29 UTC (permalink / raw)
To: dev; +Cc: stable, david.marchand, Bruce Richardson
The version of MSVC in our github CI has been updated so new warnings
are appearing about "zero extending 'unsigned long' to 'uint64_t' of
greater size." These two patches ensure that the build in github is
clean again.
Bruce Richardson (2):
rcu: fix warning on Windows builds
net/ice: disable warning in base code for Windows builds
drivers/net/intel/ice/base/meson.build | 1 +
lib/rcu/rte_rcu_qsbr.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
--
2.51.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] rcu: fix warning on Windows builds
2025-12-04 11:29 [PATCH 0/2] Fix errors with updated MSVC in github actions Bruce Richardson
@ 2025-12-04 11:29 ` Bruce Richardson
2025-12-04 11:29 ` [PATCH 2/2] net/ice: disable warning in base code for " Bruce Richardson
2025-12-04 16:31 ` [PATCH 0/2] Fix errors with updated MSVC in github actions Thomas Monjalon
2 siblings, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2025-12-04 11:29 UTC (permalink / raw)
To: dev
Cc: stable, david.marchand, Bruce Richardson, Honnappa Nagarahalli,
Konstantin Ananyev, Ola Liljedahl, Gavin Hu, Paul E. McKenney
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: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
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
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] net/ice: disable warning in base code for Windows builds
2025-12-04 11:29 [PATCH 0/2] Fix errors with updated MSVC in github actions Bruce Richardson
2025-12-04 11:29 ` [PATCH 1/2] rcu: fix warning on Windows builds Bruce Richardson
@ 2025-12-04 11:29 ` Bruce Richardson
2025-12-04 16:31 ` [PATCH 0/2] Fix errors with updated MSVC in github actions Thomas Monjalon
2 siblings, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2025-12-04 11:29 UTC (permalink / raw)
To: dev; +Cc: stable, david.marchand, Bruce Richardson, Anatoly Burakov
Disable warning about "zero extending 'unsigned long' to 'u64' of
greater size" in base code builds.
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/intel/ice/base/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/intel/ice/base/meson.build b/drivers/net/intel/ice/base/meson.build
index f46dbb265f..fd079c41cf 100644
--- a/drivers/net/intel/ice/base/meson.build
+++ b/drivers/net/intel/ice/base/meson.build
@@ -35,6 +35,7 @@ if is_ms_compiler
error_cflags = [
'/wd4101', # unreferenced local variable
'/wd4334', # result of 32-bit shift implicitly converted to 64 bits
+ '/wd4319', # zero extending 'unsigned long' to 'u64' of greater size
]
else
error_cflags = [
--
2.51.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 0/2] Fix errors with updated MSVC in github actions
2025-12-04 11:29 [PATCH 0/2] Fix errors with updated MSVC in github actions Bruce Richardson
2025-12-04 11:29 ` [PATCH 1/2] rcu: fix warning on Windows builds Bruce Richardson
2025-12-04 11:29 ` [PATCH 2/2] net/ice: disable warning in base code for " Bruce Richardson
@ 2025-12-04 16:31 ` Thomas Monjalon
2025-12-04 17:04 ` Bruce Richardson
2 siblings, 1 reply; 5+ messages in thread
From: Thomas Monjalon @ 2025-12-04 16:31 UTC (permalink / raw)
To: Bruce Richardson; +Cc: dev, stable, david.marchand
04/12/2025 12:29, Bruce Richardson:
> The version of MSVC in our github CI has been updated so new warnings
> are appearing about "zero extending 'unsigned long' to 'uint64_t' of
> greater size." These two patches ensure that the build in github is
> clean again.
>
> Bruce Richardson (2):
> rcu: fix warning on Windows builds
> net/ice: disable warning in base code for Windows builds
Applied, thanks.
Note: MSVC is a more accurate cause than Windows.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Fix errors with updated MSVC in github actions
2025-12-04 16:31 ` [PATCH 0/2] Fix errors with updated MSVC in github actions Thomas Monjalon
@ 2025-12-04 17:04 ` Bruce Richardson
0 siblings, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2025-12-04 17:04 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev, stable, david.marchand
On Thu, Dec 04, 2025 at 05:31:49PM +0100, Thomas Monjalon wrote:
> 04/12/2025 12:29, Bruce Richardson:
> > The version of MSVC in our github CI has been updated so new warnings
> > are appearing about "zero extending 'unsigned long' to 'uint64_t' of
> > greater size." These two patches ensure that the build in github is
> > clean again.
> >
> > Bruce Richardson (2):
> > rcu: fix warning on Windows builds
> > net/ice: disable warning in base code for Windows builds
>
> Applied, thanks.
>
> Note: MSVC is a more accurate cause than Windows.
>
Very true, good point!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-12-04 17:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-04 11:29 [PATCH 0/2] Fix errors with updated MSVC in github actions Bruce Richardson
2025-12-04 11:29 ` [PATCH 1/2] rcu: fix warning on Windows builds Bruce Richardson
2025-12-04 11:29 ` [PATCH 2/2] net/ice: disable warning in base code for " Bruce Richardson
2025-12-04 16:31 ` [PATCH 0/2] Fix errors with updated MSVC in github actions Thomas Monjalon
2025-12-04 17:04 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).