diff --git a/src/inc/quic_platform.h b/src/inc/quic_platform.h index e6ce291f74..24536da4c2 100644 --- a/src/inc/quic_platform.h +++ b/src/inc/quic_platform.h @@ -437,8 +437,8 @@ typedef struct CXPLAT_WORKER_POOL { } CXPLAT_WORKER_POOL; #ifdef _KERNEL_MODE // Not supported on kernel mode -CxPlatWorkerPoolInit(WorkerPool) UNREFERENCED_PARAMETER(WorkerPool) -CxPlatWorkerPoolUninit(WorkerPool) UNREFERENCED_PARAMETER(WorkerPool) +#define CxPlatWorkerPoolInit(WorkerPool) UNREFERENCED_PARAMETER(WorkerPool) +#define CxPlatWorkerPoolUninit(WorkerPool) UNREFERENCED_PARAMETER(WorkerPool) #else void CxPlatWorkerPoolInit( diff --git a/src/platform/platform_worker.c b/src/platform/platform_worker.c index d8f762d9fd..96c524862f 100644 --- a/src/platform/platform_worker.c +++ b/src/platform/platform_worker.c @@ -152,7 +152,7 @@ CxPlatWorkerPoolLazyStart( BOOLEAN SetIdealProc = !Config || !(Config->Flags & QUIC_EXECUTION_CONFIG_FLAG_NO_IDEAL_PROC); CXPLAT_THREAD_CONFIG ThreadConfig = { - SetIdealProc ? + SetIdealProc ? CXPLAT_THREAD_FLAG_SET_IDEAL_PROC : CXPLAT_THREAD_FLAG_NONE, 0, diff --git a/src/test/lib/QuicDrill.cpp b/src/test/lib/QuicDrill.cpp index f3102b3dd1..407f0f2caf 100644 --- a/src/test/lib/QuicDrill.cpp +++ b/src/test/lib/QuicDrill.cpp @@ -24,7 +24,11 @@ extern "C" { #include "quic_datapath.h" } +#ifndef _KERNEL_MODE extern CXPLAT_WORKER_POOL WorkerPool; +#else +static CXPLAT_WORKER_POOL WorkerPool; +#endif void QuicDrillTestVarIntEncoder(