Building with the latest WDK and SDK 10.0.26100.1. MSVC complains: warning C4996: 'ExAllocatePoolWithTagPriority': ExAllocatePoolWithTagPriority is deprecated, use ExAllocatePool3. warnings are treated as errors.
More information: https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-exallocatepoolwithtagpriority Signed-off-by: Alin Gabriel Serdean <[email protected]> --- datapath-windows/ovsext/Util.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/datapath-windows/ovsext/Util.c b/datapath-windows/ovsext/Util.c index d703b2468..387951f5e 100644 --- a/datapath-windows/ovsext/Util.c +++ b/datapath-windows/ovsext/Util.c @@ -59,9 +59,12 @@ OvsAllocateAlignedMemory(size_t size, UINT16 align) * XXX: NdisAllocateMemory*() functions don't talk anything about * alignment. Hence using ExAllocatePool*(); */ - return (VOID *)ExAllocatePoolWithTagPriority(NonPagedPoolNx, size, - OVS_MEMORY_TAG, - NormalPoolPriority); + POOL_EXTENDED_PARAMETER params = { 0 }; + params.Type = PoolExtendedParameterPriority; + params.Priority = NormalPoolPriority; + return (VOID *)ExAllocatePool3(POOL_FLAG_NON_PAGED, size, + OVS_MEMORY_TAG, ¶ms, + 1); } /* Invalid user input. */ @@ -179,4 +182,4 @@ OvsIpv6AddressToString(struct in6_addr ipv6Addr, char* ip6String) returnedIpv6Str = RtlIpv6AddressToStringA((&ipv6Addr), ip6String); return returnedIpv6Str; -} \ No newline at end of file +} -- 2.45.0.windows.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
