[NTDLL][HAL][INFLIB][RTL][NTOS] VOIDify function paramater lists when they indeed don't take any arguments.

svn path=/trunk/; revision=68971
This commit is contained in:
Hermès Bélusca-Maïto 2015-09-03 23:57:39 +00:00
parent 9f74cf45b1
commit 26b7393e00
26 changed files with 60 additions and 58 deletions

View file

@ -44,7 +44,7 @@ KiUserApcDispatcher(IN PVOID NormalRoutine,
VOID VOID
NTAPI NTAPI
KiRaiseUserExceptionDispatcher() KiRaiseUserExceptionDispatcher(VOID)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return; return;
@ -52,7 +52,7 @@ KiRaiseUserExceptionDispatcher()
VOID VOID
NTAPI NTAPI
KiUserCallbackDispatcher() KiUserCallbackDispatcher(VOID)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return; return;
@ -60,7 +60,7 @@ KiUserCallbackDispatcher()
VOID VOID
NTAPI NTAPI
KiUserExceptionDispatcher() KiUserExceptionDispatcher(VOID)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return; return;

View file

@ -395,7 +395,7 @@ LdrQueryImageFileExecutionOptions(IN PUNICODE_STRING SubKey,
VOID VOID
NTAPI NTAPI
LdrpEnsureLoaderLockIsHeld() LdrpEnsureLoaderLockIsHeld(VOID)
{ {
// Ignored atm // Ignored atm
} }

View file

@ -66,7 +66,7 @@ RtlpClearInDbgPrint(VOID)
KPROCESSOR_MODE KPROCESSOR_MODE
NTAPI NTAPI
RtlpGetMode() RtlpGetMode(VOID)
{ {
return UserMode; return UserMode;
} }
@ -298,8 +298,8 @@ BOOLEAN
RtlpCreateAtomHandleTable(PRTL_ATOM_TABLE AtomTable) RtlpCreateAtomHandleTable(PRTL_ATOM_TABLE AtomTable)
{ {
RtlInitializeHandleTable(0xCFFF, RtlInitializeHandleTable(0xCFFF,
sizeof(RTL_ATOM_HANDLE), sizeof(RTL_ATOM_HANDLE),
&AtomTable->RtlHandleTable); &AtomTable->RtlHandleTable);
return TRUE; return TRUE;
} }

View file

@ -53,7 +53,7 @@ DoLinearRegression(
VOID VOID
NTAPI NTAPI
HalpInitializeTsc() HalpInitializeTsc(VOID)
{ {
ULONG_PTR Flags; ULONG_PTR Flags;
KIDTENTRY OldIdtEntry, *IdtPointer; KIDTENTRY OldIdtEntry, *IdtPointer;

View file

@ -228,7 +228,7 @@ HalpTrap0DHandler(IN PKTRAP_FRAME TrapFrame)
VOID VOID
DECLSPEC_NORETURN DECLSPEC_NORETURN
HalpTrap06() HalpTrap06(VOID)
{ {
/* Restore ES/DS to known good values first */ /* Restore ES/DS to known good values first */
Ke386SetEs(KGDT_R3_DATA | RPL_MASK); Ke386SetEs(KGDT_R3_DATA | RPL_MASK);
@ -247,7 +247,7 @@ HalpTrap06()
VOID VOID
NTAPI NTAPI
HalpBiosCall() HalpBiosCall(VOID)
{ {
/* Must be volatile so it doesn't get optimized away! */ /* Must be volatile so it doesn't get optimized away! */
volatile KTRAP_FRAME V86TrapFrame; volatile KTRAP_FRAME V86TrapFrame;

View file

@ -2,7 +2,7 @@
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Kernel * PROJECT: ReactOS Kernel
* FILE: ntoskrnl/include/amd64/asmmacro.S * FILE: ntoskrnl/include/amd64/asmmacro.S
* PURPOSE: ASM macros for for GAS and MASM/ML64 * PURPOSE: ASM macros for GAS and MASM/ML64
* PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org) * PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org)
*/ */

View file

@ -19,7 +19,7 @@
static int InfpHeapRefCount; static int InfpHeapRefCount;
static VOID static VOID
CheckHeap() CheckHeap(VOID)
{ {
if (NULL == InfpHeap) if (NULL == InfpHeap)
{ {

View file

@ -1201,7 +1201,7 @@ RtlpDphFreeNodeForTable(IN PRTL_AVL_TABLE Table,
} }
NTSTATUS NTAPI NTSTATUS NTAPI
RtlpDphInitializeDelayedFreeQueue() RtlpDphInitializeDelayedFreeQueue(VOID)
{ {
NTSTATUS Status; NTSTATUS Status;
@ -1278,7 +1278,7 @@ RtlpDphFreeDelayedBlocksFromHeap(PDPH_HEAP_ROOT DphRoot,
} }
NTSTATUS NTAPI NTSTATUS NTAPI
RtlpDphTargetDllsLogicInitialize() RtlpDphTargetDllsLogicInitialize(VOID)
{ {
UNIMPLEMENTED; UNIMPLEMENTED;
return STATUS_SUCCESS; return STATUS_SUCCESS;
@ -1428,7 +1428,7 @@ RtlpDphIsNormalFreeHeapBlock(PVOID Block,
} }
NTSTATUS NTAPI NTSTATUS NTAPI
RtlpDphProcessStartupInitialization() RtlpDphProcessStartupInitialization(VOID)
{ {
NTSTATUS Status; NTSTATUS Status;
PTEB Teb = NtCurrentTeb(); PTEB Teb = NtCurrentTeb();

View file

@ -90,7 +90,7 @@ ExInitPoolLookasidePointers(VOID)
VOID VOID
NTAPI NTAPI
INIT_FUNCTION INIT_FUNCTION
ExpInitLookasideLists() ExpInitLookasideLists(VOID)
{ {
ULONG i; ULONG i;

View file

@ -196,7 +196,7 @@ FsRtlGetTunnelParameterValue(
INIT_FUNCTION INIT_FUNCTION
VOID VOID
NTAPI NTAPI
FsRtlInitializeTunnels() FsRtlInitializeTunnels(VOID)
{ {
ULONG TunnelEntries; ULONG TunnelEntries;
UNICODE_STRING MaximumTunnelEntryAgeInSeconds = RTL_CONSTANT_STRING(L"MaximumTunnelEntryAgeInSeconds"); UNICODE_STRING MaximumTunnelEntryAgeInSeconds = RTL_CONSTANT_STRING(L"MaximumTunnelEntryAgeInSeconds");

View file

@ -260,7 +260,7 @@ KeQueryInterruptHandler(IN ULONG Vector)
VOID VOID
FORCEINLINE FORCEINLINE
KiSendEOI() KiSendEOI(VOID)
{ {
/* Write 0 to the apic EOI register */ /* Write 0 to the apic EOI register */
*((volatile ULONG*)APIC_EOI_REGISTER) = 0; *((volatile ULONG*)APIC_EOI_REGISTER) = 0;

View file

@ -52,7 +52,7 @@ Ke386SaveFpuState(IN PFX_SAVE_AREA SaveArea)
FORCEINLINE FORCEINLINE
USHORT USHORT
Ke386GetLocalDescriptorTable() Ke386GetLocalDescriptorTable(VOID)
{ {
USHORT Ldt; USHORT Ldt;
__asm__("sldt %0\n\t" __asm__("sldt %0\n\t"

View file

@ -332,7 +332,7 @@ IopCreateObjectTypes(VOID)
BOOLEAN BOOLEAN
INIT_FUNCTION INIT_FUNCTION
NTAPI NTAPI
IopCreateRootDirectories() IopCreateRootDirectories(VOID)
{ {
OBJECT_ATTRIBUTES ObjectAttributes; OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING DirName; UNICODE_STRING DirName;

View file

@ -133,7 +133,7 @@ GdbGetChar(VOID)
/* scan for the sequence $<data>#<Checksum> */ /* scan for the sequence $<data>#<Checksum> */
PCHAR PCHAR
GspGetPacket() GspGetPacket(VOID)
{ {
PCHAR Buffer = &GspInBuffer[0]; PCHAR Buffer = &GspInBuffer[0];
CHAR Checksum; CHAR Checksum;

View file

@ -181,7 +181,7 @@ GdbGetChar(VOID)
/* scan for the sequence $<data>#<Checksum> */ /* scan for the sequence $<data>#<Checksum> */
PCHAR PCHAR
GspGetPacket() GspGetPacket(VOID)
{ {
PCHAR Buffer = &GspInBuffer[0]; PCHAR Buffer = &GspInBuffer[0];
CHAR Checksum; CHAR Checksum;

View file

@ -1236,7 +1236,7 @@ KdbpCallMainLoop(VOID)
* Disables interrupts, releases display ownership, ... * Disables interrupts, releases display ownership, ...
*/ */
static VOID static VOID
KdbpInternalEnter() KdbpInternalEnter(VOID)
{ {
PETHREAD Thread; PETHREAD Thread;
PVOID SavedInitialStack, SavedStackBase, SavedKernelStack; PVOID SavedInitialStack, SavedStackBase, SavedKernelStack;

View file

@ -3512,7 +3512,7 @@ KdbpCliModuleLoaded(
* call this function if KdbInitFileBuffer is not NULL. * call this function if KdbInitFileBuffer is not NULL.
*/ */
VOID VOID
KdbpCliInterpretInitFile() KdbpCliInterpretInitFile(VOID)
{ {
PCHAR p1, p2; PCHAR p1, p2;
INT i; INT i;
@ -3561,7 +3561,7 @@ KdbpCliInterpretInitFile()
* Reads the KDBinit file from the SystemRoot\System32\drivers\etc directory and executes it. * Reads the KDBinit file from the SystemRoot\System32\drivers\etc directory and executes it.
*/ */
VOID VOID
KdbpCliInit() KdbpCliInit(VOID)
{ {
NTSTATUS Status; NTSTATUS Status;
OBJECT_ATTRIBUTES ObjectAttributes; OBJECT_ATTRIBUTES ObjectAttributes;

View file

@ -41,19 +41,21 @@ extern int syscall_start[], syscall_end, KiDecrementerTrapHandler[],
VOID VOID
NTAPI NTAPI
KiSetupSyscallHandler() KiSetupSyscallHandler(VOID)
{ {
paddr_t handler_target; paddr_t handler_target;
int *source; int *source;
for(source = syscall_start, handler_target = 0xc00; for(source = syscall_start, handler_target = 0xc00;
source < &syscall_end; source < &syscall_end;
source++, handler_target += sizeof(int)) source++, handler_target += sizeof(int))
SetPhys(handler_target, *source); {
SetPhys(handler_target, *source);
}
} }
VOID VOID
NTAPI NTAPI
KiSetupDecrementerTrap() KiSetupDecrementerTrap(VOID)
{ {
paddr_t handler_target; paddr_t handler_target;
int *source; int *source;
@ -165,7 +167,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
0, 0,
0xFFFFFFFF, 0xFFFFFFFF,
&PageDirectory, &PageDirectory,
TRUE); TRUE);
InitProcess->QuantumReset = MAXCHAR; InitProcess->QuantumReset = MAXCHAR;
} }
else else
@ -270,26 +272,26 @@ KiSystemStartupReal(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
Cpu = KeNumberProcessors; Cpu = KeNumberProcessors;
if (!Cpu) if (!Cpu)
{ {
/* We'll allocate a page from the end of the kernel area for KPCR. This code will probably /* We'll allocate a page from the end of the kernel area for KPCR. This code will probably
* change when we get SMP support. * change when we get SMP support.
*/ */
info[0].phys = 0; info[0].phys = 0;
info[0].proc = 2; info[0].proc = 2;
info[0].addr = (vaddr_t)Pcr; info[0].addr = (vaddr_t)Pcr;
info[0].flags = MMU_KRW_UR; info[0].flags = MMU_KRW_UR;
info[1].phys = 0; info[1].phys = 0;
info[1].proc = 2; info[1].proc = 2;
info[1].addr = ((vaddr_t)Pcr) + (1 << PAGE_SHIFT); info[1].addr = ((vaddr_t)Pcr) + (1 << PAGE_SHIFT);
info[1].flags = MMU_KRW_UR; info[1].flags = MMU_KRW_UR;
info[2].phys = 0; info[2].phys = 0;
info[2].proc = 2; info[2].proc = 2;
info[2].addr = (vaddr_t)KI_USER_SHARED_DATA; info[2].addr = (vaddr_t)KI_USER_SHARED_DATA;
info[2].flags = MMU_KRW_UR; info[2].flags = MMU_KRW_UR;
info[3].phys = 0; info[3].phys = 0;
info[3].proc = 2; info[3].proc = 2;
info[3].addr = (vaddr_t)KIP0PCRADDRESS; info[3].addr = (vaddr_t)KIP0PCRADDRESS;
info[3].flags = MMU_KRW_UR; info[3].flags = MMU_KRW_UR;
MmuMapPage(info, 4); MmuMapPage(info, 4);
} }
/* Skip initial setup if this isn't the Boot CPU */ /* Skip initial setup if this isn't the Boot CPU */
@ -326,7 +328,7 @@ AppCpuInit:
/* Check for break-in */ /* Check for break-in */
if (KdPollBreakIn()) if (KdPollBreakIn())
{ {
DbgBreakPointWithStatus(DBG_STATUS_CONTROL_C); DbgBreakPointWithStatus(DBG_STATUS_CONTROL_C);
} }
/* Raise to HIGH_LEVEL */ /* Raise to HIGH_LEVEL */
@ -347,7 +349,7 @@ KiInitMachineDependent(VOID)
{ {
} }
void abort() void abort(VOID)
{ {
KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED); KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED);
while(1); while(1);

View file

@ -31,7 +31,7 @@ Ke386CallBios(IN ULONG Int,
VOID VOID
NTAPI NTAPI
KiUnexpectedInterrupt() KiUnexpectedInterrupt(VOID)
{ {
} }

View file

@ -42,7 +42,7 @@ MMPTE MmDecommittedPte = {{MM_DECOMMIT << MM_PTE_SOFTWARE_PROTECTION_BITS}};
VOID VOID
NTAPI NTAPI
INIT_FUNCTION INIT_FUNCTION
MiInitializeSessionSpaceLayout() MiInitializeSessionSpaceLayout(VOID)
{ {
// //
// Set the size of session view, pool, and image // Set the size of session view, pool, and image

View file

@ -37,7 +37,7 @@ PETHREAD MiExpansionLockOwner;
FORCEINLINE FORCEINLINE
KIRQL KIRQL
MiAcquireExpansionLock() MiAcquireExpansionLock(VOID)
{ {
KIRQL OldIrql; KIRQL OldIrql;

View file

@ -588,7 +588,7 @@ MmFreeSpecialPool(PVOID P)
VOID VOID
NTAPI NTAPI
MiTestSpecialPool() MiTestSpecialPool(VOID)
{ {
ULONG i; ULONG i;
PVOID p1, p2[100]; PVOID p1, p2[100];

View file

@ -67,7 +67,7 @@ MiCreateArm3StaticMemoryArea(PVOID BaseAddress, ULONG Size, BOOLEAN Executable)
VOID VOID
INIT_FUNCTION INIT_FUNCTION
NTAPI NTAPI
MiInitSystemMemoryAreas() MiInitSystemMemoryAreas(VOID)
{ {
// //
// Create all the static memory areas. // Create all the static memory areas.

View file

@ -208,7 +208,7 @@ PspReapRoutine(IN PVOID Context)
#if DBG #if DBG
VOID VOID
NTAPI NTAPI
PspCheckProcessList() PspCheckProcessList(VOID)
{ {
PLIST_ENTRY Entry; PLIST_ENTRY Entry;
@ -1066,7 +1066,7 @@ BOOLEAN
NTAPI NTAPI
PspIsProcessExiting(IN PEPROCESS Process) PspIsProcessExiting(IN PEPROCESS Process)
{ {
return Process->Flags & PSF_PROCESS_EXITING_BIT; return Process->Flags & PSF_PROCESS_EXITING_BIT;
} }
VOID VOID

View file

@ -395,7 +395,7 @@ PspInitializeSystemDll(VOID)
BOOLEAN BOOLEAN
NTAPI NTAPI
INIT_FUNCTION INIT_FUNCTION
PspInitPhase1() PspInitPhase1(VOID)
{ {
/* Initialize the System DLL and return status of operation */ /* Initialize the System DLL and return status of operation */
if (!NT_SUCCESS(PspInitializeSystemDll())) return FALSE; if (!NT_SUCCESS(PspInitializeSystemDll())) return FALSE;

View file

@ -92,7 +92,7 @@ RtlpClearInDbgPrint(VOID)
KPROCESSOR_MODE KPROCESSOR_MODE
NTAPI NTAPI
RtlpGetMode() RtlpGetMode(VOID)
{ {
return KernelMode; return KernelMode;
} }