From 57e018acf6cc75288a2f40b7341543140055a0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sat, 22 Jul 2023 23:48:58 +0200 Subject: [PATCH] [NTOS:MM] Use FORCEINLINE instead of simple inline inline implies an implementation must exist in another compilation unit --- ntoskrnl/include/internal/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/include/internal/mm.h b/ntoskrnl/include/internal/mm.h index c7bf663d1c8..5e8ad09a861 100644 --- a/ntoskrnl/include/internal/mm.h +++ b/ntoskrnl/include/internal/mm.h @@ -868,7 +868,7 @@ MmDeleteKernelStack(PVOID Stack, /* balance.c / pagefile.c******************************************************/ -inline VOID UpdateTotalCommittedPages(LONG Delta) +FORCEINLINE VOID UpdateTotalCommittedPages(LONG Delta) { /* * Add up all the used "Committed" memory + pagefile. @@ -880,7 +880,7 @@ inline VOID UpdateTotalCommittedPages(LONG Delta) MiMemoryConsumers[MC_USER].PagesUsed + MiUsedSwapPages; */ - + /* Update Commitment */ SIZE_T TotalCommittedPages = InterlockedExchangeAddSizeT(&MmTotalCommittedPages, Delta) + Delta;