[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

@ -176,7 +176,6 @@ extern UNICODE_STRING Volume;
extern KEVENT UnloadEvent;
extern LONG Unloading;
INIT_FUNCTION
DRIVER_INITIALIZE DriverEntry;
VOID
@ -229,7 +228,6 @@ HasDriveLetter(
IN PDEVICE_INFORMATION DeviceInformation
);
INIT_FUNCTION
BOOLEAN
MountmgrReadNoAutoMount(
IN PUNICODE_STRING RegistryPath

View file

@ -899,7 +899,7 @@ MountMgrUnload(IN struct _DRIVER_OBJECT *DriverObject)
/*
* @implemented
*/
INIT_FUNCTION
CODE_SEG("INIT")
BOOLEAN
MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath)
{
@ -1793,7 +1793,7 @@ MountMgrShutdown(IN PDEVICE_OBJECT DeviceObject,
/* FUNCTIONS ****************************************************************/
INIT_FUNCTION
CODE_SEG("INIT")
NTSTATUS
NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject,