[REACTOS] Cleanup INIT and some PAGE section allocations

- Change INIT_FUNCTION and INIT_SECTION to CODE_SEG("INIT") and DATA_SEG("INIT") respectively
- Remove INIT_FUNCTION from function prototypes
- Remove alloc_text pragma calls as they are not needed anymore
This commit is contained in:
Victor Perevertkin 2020-10-06 22:44:01 +03:00
parent 658f742c2d
commit 5c7ce4475e
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
184 changed files with 397 additions and 906 deletions

View file

@ -82,7 +82,7 @@ DfsUnload(PDRIVER_OBJECT DriverObject)
UNIMPLEMENTED;
}
INIT_FUNCTION
CODE_SEG("INIT")
NTSTATUS
DfsDriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)

View file

@ -51,7 +51,6 @@ DfsUnload(
PDRIVER_OBJECT DriverObject
);
INIT_FUNCTION
NTSTATUS
DfsDriverEntry(
PDRIVER_OBJECT DriverObject,

View file

@ -32,7 +32,7 @@
#define NDEBUG
#include <debug.h>
INIT_FUNCTION
CODE_SEG("INIT")
NTSTATUS
NTAPI
DriverEntry(
@ -40,13 +40,13 @@ DriverEntry(
PUNICODE_STRING RegistryPath
);
INIT_FUNCTION
CODE_SEG("INIT")
VOID
MupInitializeData(
VOID
);
INIT_FUNCTION
CODE_SEG("INIT")
VOID
MupInitializeVcb(
PMUP_VCB Vcb
@ -79,7 +79,7 @@ NTSTATUS MupOrderedErrorList[] = { STATUS_UNSUCCESSFUL,
/* FUNCTIONS ****************************************************************/
INIT_FUNCTION
CODE_SEG("INIT")
VOID
MupInitializeData(VOID)
{
@ -105,7 +105,7 @@ MupUninitializeData()
ExDeleteResourceLite(&MupVcbLock);
}
INIT_FUNCTION
CODE_SEG("INIT")
VOID
MupInitializeVcb(PMUP_VCB Vcb)
{
@ -2510,7 +2510,7 @@ MupUnload(PDRIVER_OBJECT DriverObject)
* RegistryPath = path to our configuration entries
* RETURNS: Success or failure
*/
INIT_FUNCTION
CODE_SEG("INIT")
NTSTATUS
NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,