https://git.reactos.org/?p=reactos.git;a=commitdiff;h=826aec48de506ed44b840…
commit 826aec48de506ed44b8409b53c4873641e12acc8
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed May 19 00:12:05 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed May 19 00:12:05 2021 +0200
[NTOS:MM] Fix build on whatever MSVC version triggered this
There is no real need to put static or extern "C" function in a special
namespace anyway
---
ntoskrnl/mm/ARM3/wslist.cpp | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/ntoskrnl/mm/ARM3/wslist.cpp b/ntoskrnl/mm/ARM3/wslist.cpp
index 91cd87b354f..73067dfa910 100644
--- a/ntoskrnl/mm/ARM3/wslist.cpp
+++ b/ntoskrnl/mm/ARM3/wslist.cpp
@@ -20,8 +20,6 @@ PMMWSL MmWorkingSetList;
KEVENT MmWorkingSetManagerEvent;
/* LOCAL FUNCTIONS ************************************************************/
-namespace ntoskrnl
-{
static MMPTE GetPteTemplateForWsList(PMMWSL WsList)
{
@@ -86,7 +84,7 @@ static void FreeWsleIndex(PMMWSL WsList, ULONG Index)
PFN_NUMBER Page = PFN_FROM_PTE(PointerPte);
{
- MiPfnLockGuard PfnLock;
+ ntoskrnl::MiPfnLockGuard PfnLock;
PMMPFN Pfn = MiGetPfnEntry(Page);
MI_SET_PFN_DELETED(Pfn);
@@ -177,7 +175,7 @@ static ULONG GetFreeWsleIndex(PMMWSL WsList)
ASSERT(PointerPte->u.Hard.Valid == 0);
MMPTE TempPte = GetPteTemplateForWsList(WsList);
{
- MiPfnLockGuard PfnLock;
+ ntoskrnl::MiPfnLockGuard PfnLock;
TempPte.u.Hard.PageFrameNumber =
MiRemoveAnyPage(GetNextPageColorForWsList(WsList));
MiInitializePfnAndMakePteValid(TempPte.u.Hard.PageFrameNumber,
PointerPte, TempPte);
@@ -271,7 +269,7 @@ TrimWsList(PMMWSL WsList)
/* Please put yourself aside and make place for the younger ones */
PFN_NUMBER Page = PFN_FROM_PTE(PointerPte);
{
- MiPfnLockGuard PfnLock;
+ ntoskrnl::MiPfnLockGuard PfnLock;
PMMPFN Pfn = MiGetPfnEntry(Page);
@@ -489,5 +487,3 @@ MmWorkingSetManager(VOID)
}
} // extern "C"
-
-} // namespace ntoskrnl