https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b20f81512688f26c91a13…
commit b20f81512688f26c91a131b81f41fc8cf9506f04
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sat May 23 15:56:10 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat May 23 15:56:10 2020 +0200
[NTOSKRNL] Place INIT_FUNCTION before the return type (#2823)
(but after 'static' or SAL 2 annotation.)
Follow-up to 71fefa32, which mentions that it's actually required by the compiler
in some circumstances.
---
ntoskrnl/cc/view.c | 2 +-
ntoskrnl/config/cmsysini.c | 2 +-
ntoskrnl/dbgk/dbgkobj.c | 2 +-
ntoskrnl/ex/callback.c | 2 +-
ntoskrnl/ex/event.c | 2 +-
ntoskrnl/ex/evtpair.c | 2 +-
ntoskrnl/ex/keyedevt.c | 2 +-
ntoskrnl/ex/mutant.c | 2 +-
ntoskrnl/ex/profile.c | 2 +-
ntoskrnl/ex/sem.c | 2 +-
ntoskrnl/ex/timer.c | 2 +-
ntoskrnl/ex/uuid.c | 4 ++--
ntoskrnl/ex/win32k.c | 2 +-
ntoskrnl/ex/work.c | 2 +-
ntoskrnl/io/iomgr/bootlog.c | 4 ++--
ntoskrnl/io/iomgr/iomgr.c | 10 +++++-----
ntoskrnl/ke/amd64/except.c | 2 +-
ntoskrnl/ke/amd64/kiinit.c | 2 +-
ntoskrnl/ke/amd64/krnlinit.c | 6 +++---
ntoskrnl/ke/bug.c | 2 +-
ntoskrnl/ke/i386/exp.c | 2 +-
ntoskrnl/ke/powerpc/exp.c | 2 +-
ntoskrnl/ke/powerpc/ppc_irq.c | 2 +-
ntoskrnl/mm/ARM3/arm/init.c | 2 +-
ntoskrnl/mm/amd64/init.c | 14 +++++++-------
ntoskrnl/mm/arm/page.c | 2 +-
ntoskrnl/mm/balance.c | 6 +++---
ntoskrnl/mm/i386/page.c | 2 +-
ntoskrnl/mm/i386/pagepae.c | 2 +-
ntoskrnl/mm/pagefile.c | 2 +-
ntoskrnl/mm/powerpc/page.c | 2 +-
ntoskrnl/mm/rmap.c | 2 +-
ntoskrnl/mm/section.c | 4 ++--
ntoskrnl/ob/obinit.c | 4 ++--
ntoskrnl/se/acl.c | 2 +-
ntoskrnl/se/priv.c | 2 +-
ntoskrnl/se/sd.c | 2 +-
ntoskrnl/se/sid.c | 2 +-
ntoskrnl/se/token.c | 2 +-
39 files changed, 57 insertions(+), 57 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 7e92c0bd81c..fde2bbc926a 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -1529,8 +1529,8 @@ CcGetFileObjectFromSectionPtrs (
return NULL;
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
CcInitView (
VOID)
diff --git a/ntoskrnl/config/cmsysini.c b/ntoskrnl/config/cmsysini.c
index 6f9414bde68..5eae71f0d31 100644
--- a/ntoskrnl/config/cmsysini.c
+++ b/ntoskrnl/config/cmsysini.c
@@ -446,8 +446,8 @@ Quit:
return Status;
}
-INIT_FUNCTION
static
+INIT_FUNCTION
NTSTATUS
CmpCreateHardwareProfile(HANDLE ControlSetHandle)
{
diff --git a/ntoskrnl/dbgk/dbgkobj.c b/ntoskrnl/dbgk/dbgkobj.c
index c8126feb7d0..d335ad2b8fd 100644
--- a/ntoskrnl/dbgk/dbgkobj.c
+++ b/ntoskrnl/dbgk/dbgkobj.c
@@ -1492,8 +1492,8 @@ DbgkClearProcessDebugObject(IN PEPROCESS Process,
return STATUS_SUCCESS;
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
DbgkInitialize(VOID)
{
diff --git a/ntoskrnl/ex/callback.c b/ntoskrnl/ex/callback.c
index 07b1d50b2a4..1d363822e69 100644
--- a/ntoskrnl/ex/callback.c
+++ b/ntoskrnl/ex/callback.c
@@ -250,8 +250,8 @@ ExpDeleteCallback(IN PVOID Object)
* @remarks None
*
*--*/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeCallbacks(VOID)
{
diff --git a/ntoskrnl/ex/event.c b/ntoskrnl/ex/event.c
index 26cbda90f34..e00e49cb9c0 100644
--- a/ntoskrnl/ex/event.c
+++ b/ntoskrnl/ex/event.c
@@ -37,8 +37,8 @@ static const INFORMATION_CLASS_INFO ExEventInfoClass[] =
/* FUNCTIONS *****************************************************************/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeEventImplementation(VOID)
{
diff --git a/ntoskrnl/ex/evtpair.c b/ntoskrnl/ex/evtpair.c
index 166cdc6d5b6..114c160eb3a 100644
--- a/ntoskrnl/ex/evtpair.c
+++ b/ntoskrnl/ex/evtpair.c
@@ -31,8 +31,8 @@ GENERIC_MAPPING ExEventPairMapping =
/* FUNCTIONS *****************************************************************/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeEventPairImplementation(VOID)
{
diff --git a/ntoskrnl/ex/keyedevt.c b/ntoskrnl/ex/keyedevt.c
index 110b2c3ee78..aff93b8fa94 100644
--- a/ntoskrnl/ex/keyedevt.c
+++ b/ntoskrnl/ex/keyedevt.c
@@ -42,8 +42,8 @@ GENERIC_MAPPING ExpKeyedEventMapping =
/* FUNCTIONS *****************************************************************/
_IRQL_requires_max_(APC_LEVEL)
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeKeyedEventImplementation(VOID)
{
diff --git a/ntoskrnl/ex/mutant.c b/ntoskrnl/ex/mutant.c
index fb3dd1f660e..c69d026fe97 100644
--- a/ntoskrnl/ex/mutant.c
+++ b/ntoskrnl/ex/mutant.c
@@ -50,8 +50,8 @@ ExpDeleteMutant(PVOID ObjectBody)
FALSE);
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeMutantImplementation(VOID)
{
diff --git a/ntoskrnl/ex/profile.c b/ntoskrnl/ex/profile.c
index ee21fba249d..54540072460 100644
--- a/ntoskrnl/ex/profile.c
+++ b/ntoskrnl/ex/profile.c
@@ -62,8 +62,8 @@ ExpDeleteProfile(PVOID ObjectBody)
if (Profile->Process) ObDereferenceObject(Profile->Process);
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeProfileImplementation(VOID)
{
diff --git a/ntoskrnl/ex/sem.c b/ntoskrnl/ex/sem.c
index 98464685589..13db388013f 100644
--- a/ntoskrnl/ex/sem.c
+++ b/ntoskrnl/ex/sem.c
@@ -37,8 +37,8 @@ static const INFORMATION_CLASS_INFO ExSemaphoreInfoClass[] =
/* FUNCTIONS *****************************************************************/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeSemaphoreImplementation(VOID)
{
diff --git a/ntoskrnl/ex/timer.c b/ntoskrnl/ex/timer.c
index 8e2c85d9891..a10ee751225 100644
--- a/ntoskrnl/ex/timer.c
+++ b/ntoskrnl/ex/timer.c
@@ -217,8 +217,8 @@ ExpTimerApcKernelRoutine(IN PKAPC Apc,
ObDereferenceObjectEx(Timer, DerefsToDo);
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpInitializeTimerImplementation(VOID)
{
diff --git a/ntoskrnl/ex/uuid.c b/ntoskrnl/ex/uuid.c
index 8af4776d0b1..0d198fbe4fe 100644
--- a/ntoskrnl/ex/uuid.c
+++ b/ntoskrnl/ex/uuid.c
@@ -52,8 +52,8 @@ LARGE_INTEGER ExpLuid = {{0x3e9, 0x0}};
/*
* @implemented
*/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpUuidInitialization(VOID)
{
@@ -324,8 +324,8 @@ ExpUuidGetValues(PUUID_CACHED_VALUES_STRUCT CachedValues)
/*
* @implemented
*/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExLuidInitialization(VOID)
{
diff --git a/ntoskrnl/ex/win32k.c b/ntoskrnl/ex/win32k.c
index 99de63c7e87..5e3b02c9035 100644
--- a/ntoskrnl/ex/win32k.c
+++ b/ntoskrnl/ex/win32k.c
@@ -257,8 +257,8 @@ ExpDesktopClose(IN PEPROCESS Process OPTIONAL,
&Parameters);
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ExpWin32kInit(VOID)
{
diff --git a/ntoskrnl/ex/work.c b/ntoskrnl/ex/work.c
index 24d328abc07..4196162c1f1 100644
--- a/ntoskrnl/ex/work.c
+++ b/ntoskrnl/ex/work.c
@@ -515,8 +515,8 @@ ExpWorkerThreadBalanceManager(IN PVOID Context)
* @remarks This routine is only called once during system initialization.
*
*--*/
-VOID
INIT_FUNCTION
+VOID
NTAPI
ExpInitializeWorkerThreads(VOID)
{
diff --git a/ntoskrnl/io/iomgr/bootlog.c b/ntoskrnl/io/iomgr/bootlog.c
index e552d4b3306..347a25d9b11 100644
--- a/ntoskrnl/io/iomgr/bootlog.c
+++ b/ntoskrnl/io/iomgr/bootlog.c
@@ -29,8 +29,8 @@ static ERESOURCE IopBootLogResource;
/* FUNCTIONS ****************************************************************/
-VOID
INIT_FUNCTION
+VOID
IopInitBootLog(BOOLEAN StartBootLog)
{
ExInitializeResourceLite(&IopBootLogResource);
@@ -38,8 +38,8 @@ IopInitBootLog(BOOLEAN StartBootLog)
}
-VOID
INIT_FUNCTION
+VOID
IopStartBootLog(VOID)
{
IopBootLogCreate = TRUE;
diff --git a/ntoskrnl/io/iomgr/iomgr.c b/ntoskrnl/io/iomgr/iomgr.c
index a9c7ba35991..2aadf7a7502 100644
--- a/ntoskrnl/io/iomgr/iomgr.c
+++ b/ntoskrnl/io/iomgr/iomgr.c
@@ -93,8 +93,8 @@ PLOADER_PARAMETER_BLOCK IopLoaderBlock;
/* INIT FUNCTIONS ************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
IopInitLookasideLists(VOID)
{
@@ -240,8 +240,8 @@ IopInitLookasideLists(VOID)
}
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
IopCreateObjectTypes(VOID)
{
@@ -329,8 +329,8 @@ IopCreateObjectTypes(VOID)
return TRUE;
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
IopCreateRootDirectories(VOID)
{
@@ -394,8 +394,8 @@ IopCreateRootDirectories(VOID)
return TRUE;
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
IopMarkBootPartition(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
@@ -464,8 +464,8 @@ IopMarkBootPartition(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
return TRUE;
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
diff --git a/ntoskrnl/ke/amd64/except.c b/ntoskrnl/ke/amd64/except.c
index 299035290af..ed0757d84fb 100644
--- a/ntoskrnl/ke/amd64/except.c
+++ b/ntoskrnl/ke/amd64/except.c
@@ -53,8 +53,8 @@ KDESCRIPTOR KiIdtDescriptor = {{0}, sizeof(KiIdt) - 1, KiIdt};
/* FUNCTIONS *****************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
KeInitExceptions(VOID)
{
diff --git a/ntoskrnl/ke/amd64/kiinit.c b/ntoskrnl/ke/amd64/kiinit.c
index 74623c1a2ca..c951a083657 100644
--- a/ntoskrnl/ke/amd64/kiinit.c
+++ b/ntoskrnl/ke/amd64/kiinit.c
@@ -268,9 +268,9 @@ KiInitializeTss(IN PKTSS64 Tss,
__ltr(KGDT64_SYS_TSS);
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
KiInitializeKernelMachineDependent(
IN PKPRCB Prcb,
IN PLOADER_PARAMETER_BLOCK LoaderBlock)
diff --git a/ntoskrnl/ke/amd64/krnlinit.c b/ntoskrnl/ke/amd64/krnlinit.c
index 22833e0726f..93519095f98 100644
--- a/ntoskrnl/ke/amd64/krnlinit.c
+++ b/ntoskrnl/ke/amd64/krnlinit.c
@@ -20,9 +20,9 @@ extern BOOLEAN RtlpUse16ByteSLists;
/* FUNCTIONS *****************************************************************/
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
KiInitializeKernel(IN PKPROCESS InitProcess,
IN PKTHREAD InitThread,
IN PVOID IdleStack,
@@ -51,9 +51,9 @@ KiInitializeHandBuiltThread(
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
KiSystemStartupBootStack(VOID)
{
PLOADER_PARAMETER_BLOCK LoaderBlock = KeLoaderBlock; // hack
@@ -134,9 +134,9 @@ KiSystemStartupBootStack(VOID)
KiIdleLoop();
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
KiInitializeKernel(IN PKPROCESS InitProcess,
IN PKTHREAD InitThread,
IN PVOID IdleStack,
diff --git a/ntoskrnl/ke/bug.c b/ntoskrnl/ke/bug.c
index 38e0077d9de..8b9f020a10f 100644
--- a/ntoskrnl/ke/bug.c
+++ b/ntoskrnl/ke/bug.c
@@ -295,8 +295,8 @@ KeRosDumpStackFrames(IN PULONG_PTR Frame OPTIONAL,
}
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
KiInitializeBugCheck(VOID)
{
diff --git a/ntoskrnl/ke/i386/exp.c b/ntoskrnl/ke/i386/exp.c
index 87405e6032f..25cc92f4f01 100644
--- a/ntoskrnl/ke/i386/exp.c
+++ b/ntoskrnl/ke/i386/exp.c
@@ -17,8 +17,8 @@
/* FUNCTIONS *****************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
KeInitExceptions(VOID)
{
diff --git a/ntoskrnl/ke/powerpc/exp.c b/ntoskrnl/ke/powerpc/exp.c
index aa6699306aa..52cced20b6f 100644
--- a/ntoskrnl/ke/powerpc/exp.c
+++ b/ntoskrnl/ke/powerpc/exp.c
@@ -17,8 +17,8 @@
/* FUNCTIONS *****************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
KeInitExceptions(VOID)
{
diff --git a/ntoskrnl/ke/powerpc/ppc_irq.c b/ntoskrnl/ke/powerpc/ppc_irq.c
index d516861bd53..25cdb1168a3 100644
--- a/ntoskrnl/ke/powerpc/ppc_irq.c
+++ b/ntoskrnl/ke/powerpc/ppc_irq.c
@@ -145,8 +145,8 @@ static ISR_TABLE IsrTable[NR_TRAPS][1];
/* FUNCTIONS ****************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
KeInitInterrupts (VOID)
{
diff --git a/ntoskrnl/mm/ARM3/arm/init.c b/ntoskrnl/mm/ARM3/arm/init.c
index cdc1d398276..106044b5b4d 100644
--- a/ntoskrnl/mm/ARM3/arm/init.c
+++ b/ntoskrnl/mm/ARM3/arm/init.c
@@ -57,9 +57,9 @@ PVOID MmHyperSpaceEnd;
/* PRIVATE FUNCTIONS **********************************************************/
+INIT_FUNCTION
NTSTATUS
NTAPI
-INIT_FUNCTION
MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
//
diff --git a/ntoskrnl/mm/amd64/init.c b/ntoskrnl/mm/amd64/init.c
index 104d8b3b1eb..9eaed0a75fd 100644
--- a/ntoskrnl/mm/amd64/init.c
+++ b/ntoskrnl/mm/amd64/init.c
@@ -57,9 +57,9 @@ BOOLEAN MiPfnsInitialized = FALSE;
/* FUNCTIONS *****************************************************************/
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiInitializeSessionSpaceLayout(VOID)
{
MmSessionSize = MI_SESSION_SIZE;
@@ -180,9 +180,9 @@ MiMapPTEs(
}
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiInitializePageTable(VOID)
{
ULONG64 PxePhysicalAddress;
@@ -266,9 +266,9 @@ MiInitializePageTable(VOID)
MiMapPTEs((PVOID)MI_VAD_BITMAP, (PVOID)(MI_WORKING_SET_LIST + PAGE_SIZE - 1));
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiBuildNonPagedPool(VOID)
{
/* Check if this is a machine with less than 256MB of RAM, and no overide */
@@ -357,9 +357,9 @@ MiBuildNonPagedPool(VOID)
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiBuildSystemPteSpace(VOID)
{
PMMPTE PointerPte;
@@ -524,9 +524,9 @@ MiBuildPfnDatabaseFromPageTables(VOID)
#endif
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiAddDescriptorToDatabase(
PFN_NUMBER BasePage,
PFN_NUMBER PageCount,
@@ -603,9 +603,9 @@ MiAddDescriptorToDatabase(
}
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiBuildPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
PLIST_ENTRY ListEntry;
@@ -670,9 +670,9 @@ MiBuildPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
*MxFreeDescriptor = MxOldFreeDescriptor;
}
+INIT_FUNCTION
NTSTATUS
NTAPI
-INIT_FUNCTION
MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
ASSERT(MxPfnAllocation != 0);
diff --git a/ntoskrnl/mm/arm/page.c b/ntoskrnl/mm/arm/page.c
index 4e0bddf2448..e473945e153 100644
--- a/ntoskrnl/mm/arm/page.c
+++ b/ntoskrnl/mm/arm/page.c
@@ -312,9 +312,9 @@ MmIsDisabledPage(PEPROCESS Process, PVOID Address)
return FALSE;
}
+INIT_FUNCTION
VOID
NTAPI
-INIT_FUNCTION
MiInitializeSessionSpaceLayout(VOID)
{
ASSERT(FALSE);
diff --git a/ntoskrnl/mm/balance.c b/ntoskrnl/mm/balance.c
index 062432e3ecd..1501f8c5681 100644
--- a/ntoskrnl/mm/balance.c
+++ b/ntoskrnl/mm/balance.c
@@ -47,8 +47,8 @@ static KTIMER MiBalancerTimer;
/* FUNCTIONS ****************************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitializeBalancer(ULONG NrAvailablePages, ULONG NrSystemPages)
{
@@ -76,8 +76,8 @@ MmInitializeBalancer(ULONG NrAvailablePages, ULONG NrSystemPages)
MiMemoryConsumers[MC_USER].PagesTarget = NrAvailablePages - MiMinimumAvailablePages;
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitializeMemoryConsumer(
ULONG Consumer,
@@ -443,8 +443,8 @@ BOOLEAN MmRosNotifyAvailablePage(PFN_NUMBER Page)
return TRUE;
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MiInitBalancerThread(VOID)
{
diff --git a/ntoskrnl/mm/i386/page.c b/ntoskrnl/mm/i386/page.c
index 78e17b45659..6b5ac1e8353 100644
--- a/ntoskrnl/mm/i386/page.c
+++ b/ntoskrnl/mm/i386/page.c
@@ -877,8 +877,8 @@ MmSetPageProtect(PEPROCESS Process, PVOID Address, ULONG flProtect)
MmUnmapPageTable(Pt);
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitGlobalKernelPageDirectory(VOID)
{
diff --git a/ntoskrnl/mm/i386/pagepae.c b/ntoskrnl/mm/i386/pagepae.c
index d40a186172f..9495def2f89 100644
--- a/ntoskrnl/mm/i386/pagepae.c
+++ b/ntoskrnl/mm/i386/pagepae.c
@@ -1492,8 +1492,8 @@ MmSetPageProtect(PEPROCESS Process, PVOID Address, ULONG flProtect)
}
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitGlobalKernelPageDirectory(VOID)
{
diff --git a/ntoskrnl/mm/pagefile.c b/ntoskrnl/mm/pagefile.c
index f94b65a60aa..5bb4a4a8ff9 100644
--- a/ntoskrnl/mm/pagefile.c
+++ b/ntoskrnl/mm/pagefile.c
@@ -253,8 +253,8 @@ MiReadPageFile(
return(Status);
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitPagingFile(VOID)
{
diff --git a/ntoskrnl/mm/powerpc/page.c b/ntoskrnl/mm/powerpc/page.c
index 98aded450f8..ec378f49022 100644
--- a/ntoskrnl/mm/powerpc/page.c
+++ b/ntoskrnl/mm/powerpc/page.c
@@ -445,8 +445,8 @@ MmSetPageProtect(PEPROCESS Process, PVOID Address, ULONG flProtect)
#endif
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitGlobalKernelPageDirectory(VOID)
{
diff --git a/ntoskrnl/mm/rmap.c b/ntoskrnl/mm/rmap.c
index 0064ba27da3..33fc2e301ec 100644
--- a/ntoskrnl/mm/rmap.c
+++ b/ntoskrnl/mm/rmap.c
@@ -37,8 +37,8 @@ RmapListFree(
ExFreePoolWithTag(P, TAG_RMAP);
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
MmInitializeRmapList(VOID)
{
diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c
index 8278226b074..9e7958a2aac 100644
--- a/ntoskrnl/mm/section.c
+++ b/ntoskrnl/mm/section.c
@@ -2749,8 +2749,8 @@ MmpCloseSection(IN PEPROCESS Process OPTIONAL,
DPRINT("MmpCloseSection(OB %p, HC %lu)\n", Object, ProcessHandleCount);
}
-NTSTATUS
INIT_FUNCTION
+NTSTATUS
NTAPI
MmCreatePhysicalMemorySection(VOID)
{
@@ -2800,8 +2800,8 @@ MmCreatePhysicalMemorySection(VOID)
return(STATUS_SUCCESS);
}
-NTSTATUS
INIT_FUNCTION
+NTSTATUS
NTAPI
MmInitSectionImplementation(VOID)
{
diff --git a/ntoskrnl/ob/obinit.c b/ntoskrnl/ob/obinit.c
index 5ae4e731244..209feda6410 100644
--- a/ntoskrnl/ob/obinit.c
+++ b/ntoskrnl/ob/obinit.c
@@ -129,8 +129,8 @@ done:
return Status;
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ObInit2(VOID)
{
@@ -196,8 +196,8 @@ ObInit2(VOID)
return TRUE;
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
ObInitSystem(VOID)
{
diff --git a/ntoskrnl/se/acl.c b/ntoskrnl/se/acl.c
index 38296847940..83831df27c6 100644
--- a/ntoskrnl/se/acl.c
+++ b/ntoskrnl/se/acl.c
@@ -28,8 +28,8 @@ PACL SeUnrestrictedDacl = NULL;
/* FUNCTIONS ******************************************************************/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
SepInitDACLs(VOID)
{
diff --git a/ntoskrnl/se/priv.c b/ntoskrnl/se/priv.c
index 40176486615..c813f85881f 100644
--- a/ntoskrnl/se/priv.c
+++ b/ntoskrnl/se/priv.c
@@ -58,8 +58,8 @@ const LUID SeCreateSymbolicLinkPrivilege =
CONST_LUID(SE_CREATE_SYMBOLIC_LINK_PR
/* PRIVATE FUNCTIONS **********************************************************/
-VOID
INIT_FUNCTION
+VOID
NTAPI
SepInitPrivileges(VOID)
{
diff --git a/ntoskrnl/se/sd.c b/ntoskrnl/se/sd.c
index 37dc1a162bd..7bc16273518 100644
--- a/ntoskrnl/se/sd.c
+++ b/ntoskrnl/se/sd.c
@@ -28,8 +28,8 @@ PSECURITY_DESCRIPTOR SeUnrestrictedSd = NULL;
/* PRIVATE FUNCTIONS **********************************************************/
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
SepInitSDs(VOID)
{
diff --git a/ntoskrnl/se/sid.c b/ntoskrnl/se/sid.c
index d75dd78ce01..ef9e649fc60 100644
--- a/ntoskrnl/se/sid.c
+++ b/ntoskrnl/se/sid.c
@@ -94,8 +94,8 @@ FreeInitializedSids(VOID)
if (SeAnonymousLogonSid) ExFreePoolWithTag(SeAnonymousLogonSid, TAG_SID);
}
-BOOLEAN
INIT_FUNCTION
+BOOLEAN
NTAPI
SepInitSecurityIDs(VOID)
{
diff --git a/ntoskrnl/se/token.c b/ntoskrnl/se/token.c
index f41ef93f525..d66d4f8e215 100644
--- a/ntoskrnl/se/token.c
+++ b/ntoskrnl/se/token.c
@@ -830,8 +830,8 @@ SepDeleteToken(PVOID ObjectBody)
}
-VOID
INIT_FUNCTION
+VOID
NTAPI
SepInitializeTokenImplementation(VOID)
{