https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cf510c3e648eec3c04a103...
commit cf510c3e648eec3c04a1034fd7f366c8bac82848 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Sat May 23 16:05:58 2020 +0200 Commit: GitHub noreply@github.com CommitDate: Sat May 23 16:05:58 2020 +0200
[NTOSKRNL] Sync some INIT_FUNCTION (#2824)
- Sync some INIT_FUNCTION with how they are used and what is already specified in the headers. Addendum to commit 85e5b5be (r49445).
- KdbpGetCommandLineSettings(): Remove INIT_FUNCTION. Fix MSVC 2015 x86 custom build: "...\ntoskrnl\kdbg\kdb.c(1699): error C2983: 'KdbpGetCommandLineSettings': all declarations must have an identical __declspec(code_seg(...))"
And may also fix obscure bugs when entering into the KDBG debugger. --- ntoskrnl/cache/fssup.c | 2 ++ ntoskrnl/config/cmse.c | 1 - ntoskrnl/ex/init.c | 1 + ntoskrnl/kdbg/kdb.c | 1 - ntoskrnl/ob/obinit.c | 1 + 5 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/cache/fssup.c b/ntoskrnl/cache/fssup.c index 1bfe40e7a8d..f608361b587 100644 --- a/ntoskrnl/cache/fssup.c +++ b/ntoskrnl/cache/fssup.c @@ -77,6 +77,7 @@ LIST_ENTRY CcpAllSharedCacheMaps;
/* FUNCTIONS ******************************************************************/
+INIT_FUNCTION BOOLEAN NTAPI CcInitializeCacheManager(VOID) @@ -107,6 +108,7 @@ CcInitializeCacheManager(VOID) return TRUE; }
+INIT_FUNCTION VOID NTAPI CcPfInitializePrefetcher(VOID) diff --git a/ntoskrnl/config/cmse.c b/ntoskrnl/config/cmse.c index 780c8874689..1d5aec4e99e 100644 --- a/ntoskrnl/config/cmse.c +++ b/ntoskrnl/config/cmse.c @@ -16,7 +16,6 @@
/* FUNCTIONS *****************************************************************/
-//INIT_FUNCTION PSECURITY_DESCRIPTOR NTAPI CmpHiveRootSecurityDescriptor(VOID) diff --git a/ntoskrnl/ex/init.c b/ntoskrnl/ex/init.c index c09918e2533..e39b00070f4 100644 --- a/ntoskrnl/ex/init.c +++ b/ntoskrnl/ex/init.c @@ -19,6 +19,7 @@ RTL_SIZEOF_THROUGH_FIELD(LOADER_PARAMETER_EXTENSION, AcpiTableSize)
/* Temporary hack */ +INIT_FUNCTION BOOLEAN NTAPI MmArmInitSystem( diff --git a/ntoskrnl/kdbg/kdb.c b/ntoskrnl/kdbg/kdb.c index 78662445af5..2698190ccce 100644 --- a/ntoskrnl/kdbg/kdb.c +++ b/ntoskrnl/kdbg/kdb.c @@ -1691,7 +1691,6 @@ continue_execution: return ContinueType; }
-INIT_FUNCTION VOID NTAPI KdbpGetCommandLineSettings( diff --git a/ntoskrnl/ob/obinit.c b/ntoskrnl/ob/obinit.c index 209feda6410..e4244014b48 100644 --- a/ntoskrnl/ob/obinit.c +++ b/ntoskrnl/ob/obinit.c @@ -46,6 +46,7 @@ GENERIC_MAPPING ObpSymbolicLinkMapping = PDEVICE_MAP ObSystemDeviceMap = NULL; ULONG ObpTraceLevel = 0;
+INIT_FUNCTION VOID NTAPI PsInitializeQuotaSystem(VOID);