Skip to content

Commit

Permalink
Actually fix kernel build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Aug 30, 2024
1 parent a6f3374 commit 52b453a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/inc/quic_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/platform/platform_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/test/lib/QuicDrill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 52b453a

Please sign in to comment.