https://git.reactos.org/?p=reactos.git;a=commitdiff;h=57e018acf6cc75288a2f4…
commit 57e018acf6cc75288a2f40b7341543140055a0ae
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Sat Jul 22 23:48:58 2023 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Sun Jul 23 23:58:42 2023 +0200
[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;