[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.
This commit is contained in:
Serge Gautherie 2020-05-23 16:05:58 +02:00 committed by GitHub
parent b20f815126
commit cf510c3e64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -16,7 +16,6 @@
/* FUNCTIONS *****************************************************************/
//INIT_FUNCTION
PSECURITY_DESCRIPTOR
NTAPI
CmpHiveRootSecurityDescriptor(VOID)

View file

@ -19,6 +19,7 @@
RTL_SIZEOF_THROUGH_FIELD(LOADER_PARAMETER_EXTENSION, AcpiTableSize)
/* Temporary hack */
INIT_FUNCTION
BOOLEAN
NTAPI
MmArmInitSystem(

View file

@ -1691,7 +1691,6 @@ continue_execution:
return ContinueType;
}
INIT_FUNCTION
VOID
NTAPI
KdbpGetCommandLineSettings(

View file

@ -46,6 +46,7 @@ GENERIC_MAPPING ObpSymbolicLinkMapping =
PDEVICE_MAP ObSystemDeviceMap = NULL;
ULONG ObpTraceLevel = 0;
INIT_FUNCTION
VOID
NTAPI
PsInitializeQuotaSystem(VOID);