From 52b453a2f7f815e1b5e9dbbdd6b96eeeb73a27c9 Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 30 Aug 2024 08:06:12 -0700 Subject: [PATCH] Actually fix kernel build --- src/inc/quic_platform.h | 4 ++-- src/platform/platform_worker.c | 2 +- src/test/lib/QuicDrill.cpp | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) 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(