diff --git a/reactos/dll/ntdll/dispatch/amd64/stubs.c b/reactos/dll/ntdll/dispatch/amd64/stubs.c index f8c836496f1..b5af8f7ba2e 100644 --- a/reactos/dll/ntdll/dispatch/amd64/stubs.c +++ b/reactos/dll/ntdll/dispatch/amd64/stubs.c @@ -44,7 +44,7 @@ KiUserApcDispatcher(IN PVOID NormalRoutine, VOID NTAPI -KiRaiseUserExceptionDispatcher() +KiRaiseUserExceptionDispatcher(VOID) { UNIMPLEMENTED; return; @@ -52,7 +52,7 @@ KiRaiseUserExceptionDispatcher() VOID NTAPI -KiUserCallbackDispatcher() +KiUserCallbackDispatcher(VOID) { UNIMPLEMENTED; return; @@ -60,7 +60,7 @@ KiUserCallbackDispatcher() VOID NTAPI -KiUserExceptionDispatcher() +KiUserExceptionDispatcher(VOID) { UNIMPLEMENTED; return; diff --git a/reactos/dll/ntdll/ldr/ldrinit.c b/reactos/dll/ntdll/ldr/ldrinit.c index f4b5e825c19..2bcfbebb85d 100644 --- a/reactos/dll/ntdll/ldr/ldrinit.c +++ b/reactos/dll/ntdll/ldr/ldrinit.c @@ -395,7 +395,7 @@ LdrQueryImageFileExecutionOptions(IN PUNICODE_STRING SubKey, VOID NTAPI -LdrpEnsureLoaderLockIsHeld() +LdrpEnsureLoaderLockIsHeld(VOID) { // Ignored atm } diff --git a/reactos/dll/ntdll/rtl/libsupp.c b/reactos/dll/ntdll/rtl/libsupp.c index 81daf81cb23..b0bf8eaba63 100644 --- a/reactos/dll/ntdll/rtl/libsupp.c +++ b/reactos/dll/ntdll/rtl/libsupp.c @@ -66,7 +66,7 @@ RtlpClearInDbgPrint(VOID) KPROCESSOR_MODE NTAPI -RtlpGetMode() +RtlpGetMode(VOID) { return UserMode; } @@ -298,8 +298,8 @@ BOOLEAN RtlpCreateAtomHandleTable(PRTL_ATOM_TABLE AtomTable) { RtlInitializeHandleTable(0xCFFF, - sizeof(RTL_ATOM_HANDLE), - &AtomTable->RtlHandleTable); + sizeof(RTL_ATOM_HANDLE), + &AtomTable->RtlHandleTable); return TRUE; } diff --git a/reactos/hal/halx86/apic/tsc.c b/reactos/hal/halx86/apic/tsc.c index 6a52bf5c290..0f0d74b883b 100644 --- a/reactos/hal/halx86/apic/tsc.c +++ b/reactos/hal/halx86/apic/tsc.c @@ -53,7 +53,7 @@ DoLinearRegression( VOID NTAPI -HalpInitializeTsc() +HalpInitializeTsc(VOID) { ULONG_PTR Flags; KIDTENTRY OldIdtEntry, *IdtPointer; diff --git a/reactos/hal/halx86/generic/bios.c b/reactos/hal/halx86/generic/bios.c index 7f32e430766..013f417b149 100644 --- a/reactos/hal/halx86/generic/bios.c +++ b/reactos/hal/halx86/generic/bios.c @@ -228,7 +228,7 @@ HalpTrap0DHandler(IN PKTRAP_FRAME TrapFrame) VOID DECLSPEC_NORETURN -HalpTrap06() +HalpTrap06(VOID) { /* Restore ES/DS to known good values first */ Ke386SetEs(KGDT_R3_DATA | RPL_MASK); @@ -247,7 +247,7 @@ HalpTrap06() VOID NTAPI -HalpBiosCall() +HalpBiosCall(VOID) { /* Must be volatile so it doesn't get optimized away! */ volatile KTRAP_FRAME V86TrapFrame; diff --git a/reactos/include/asm/asm.inc b/reactos/include/asm/asm.inc index 46803eaf837..d81db8bc63e 100644 --- a/reactos/include/asm/asm.inc +++ b/reactos/include/asm/asm.inc @@ -2,7 +2,7 @@ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Kernel * 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) */ diff --git a/reactos/lib/inflib/infrosgen.c b/reactos/lib/inflib/infrosgen.c index b23403b96c0..d38160e4a20 100644 --- a/reactos/lib/inflib/infrosgen.c +++ b/reactos/lib/inflib/infrosgen.c @@ -19,7 +19,7 @@ static int InfpHeapRefCount; static VOID -CheckHeap() +CheckHeap(VOID) { if (NULL == InfpHeap) { diff --git a/reactos/lib/rtl/heappage.c b/reactos/lib/rtl/heappage.c index 94f1a409b4c..3d11e5f7f64 100644 --- a/reactos/lib/rtl/heappage.c +++ b/reactos/lib/rtl/heappage.c @@ -1201,7 +1201,7 @@ RtlpDphFreeNodeForTable(IN PRTL_AVL_TABLE Table, } NTSTATUS NTAPI -RtlpDphInitializeDelayedFreeQueue() +RtlpDphInitializeDelayedFreeQueue(VOID) { NTSTATUS Status; @@ -1278,7 +1278,7 @@ RtlpDphFreeDelayedBlocksFromHeap(PDPH_HEAP_ROOT DphRoot, } NTSTATUS NTAPI -RtlpDphTargetDllsLogicInitialize() +RtlpDphTargetDllsLogicInitialize(VOID) { UNIMPLEMENTED; return STATUS_SUCCESS; @@ -1428,7 +1428,7 @@ RtlpDphIsNormalFreeHeapBlock(PVOID Block, } NTSTATUS NTAPI -RtlpDphProcessStartupInitialization() +RtlpDphProcessStartupInitialization(VOID) { NTSTATUS Status; PTEB Teb = NtCurrentTeb(); diff --git a/reactos/ntoskrnl/ex/lookas.c b/reactos/ntoskrnl/ex/lookas.c index 5b32af5af0d..ceb3789f9c7 100644 --- a/reactos/ntoskrnl/ex/lookas.c +++ b/reactos/ntoskrnl/ex/lookas.c @@ -90,7 +90,7 @@ ExInitPoolLookasidePointers(VOID) VOID NTAPI INIT_FUNCTION -ExpInitLookasideLists() +ExpInitLookasideLists(VOID) { ULONG i; diff --git a/reactos/ntoskrnl/fsrtl/tunnel.c b/reactos/ntoskrnl/fsrtl/tunnel.c index db292f649e0..a8006ac7812 100644 --- a/reactos/ntoskrnl/fsrtl/tunnel.c +++ b/reactos/ntoskrnl/fsrtl/tunnel.c @@ -196,7 +196,7 @@ FsRtlGetTunnelParameterValue( INIT_FUNCTION VOID NTAPI -FsRtlInitializeTunnels() +FsRtlInitializeTunnels(VOID) { ULONG TunnelEntries; UNICODE_STRING MaximumTunnelEntryAgeInSeconds = RTL_CONSTANT_STRING(L"MaximumTunnelEntryAgeInSeconds"); diff --git a/reactos/ntoskrnl/include/internal/amd64/ke.h b/reactos/ntoskrnl/include/internal/amd64/ke.h index c5af042be7b..250a87f8387 100644 --- a/reactos/ntoskrnl/include/internal/amd64/ke.h +++ b/reactos/ntoskrnl/include/internal/amd64/ke.h @@ -260,7 +260,7 @@ KeQueryInterruptHandler(IN ULONG Vector) VOID FORCEINLINE -KiSendEOI() +KiSendEOI(VOID) { /* Write 0 to the apic EOI register */ *((volatile ULONG*)APIC_EOI_REGISTER) = 0; diff --git a/reactos/ntoskrnl/include/internal/i386/intrin_i.h b/reactos/ntoskrnl/include/internal/i386/intrin_i.h index 35cfd8ecbcc..76e391e10ba 100644 --- a/reactos/ntoskrnl/include/internal/i386/intrin_i.h +++ b/reactos/ntoskrnl/include/internal/i386/intrin_i.h @@ -52,7 +52,7 @@ Ke386SaveFpuState(IN PFX_SAVE_AREA SaveArea) FORCEINLINE USHORT -Ke386GetLocalDescriptorTable() +Ke386GetLocalDescriptorTable(VOID) { USHORT Ldt; __asm__("sldt %0\n\t" diff --git a/reactos/ntoskrnl/io/iomgr/iomgr.c b/reactos/ntoskrnl/io/iomgr/iomgr.c index 20d24169071..aa01098ff35 100644 --- a/reactos/ntoskrnl/io/iomgr/iomgr.c +++ b/reactos/ntoskrnl/io/iomgr/iomgr.c @@ -332,7 +332,7 @@ IopCreateObjectTypes(VOID) BOOLEAN INIT_FUNCTION NTAPI -IopCreateRootDirectories() +IopCreateRootDirectories(VOID) { OBJECT_ATTRIBUTES ObjectAttributes; UNICODE_STRING DirName; diff --git a/reactos/ntoskrnl/kd/wrappers/gdbstub.c b/reactos/ntoskrnl/kd/wrappers/gdbstub.c index e32da198bd0..6ca68939fc9 100644 --- a/reactos/ntoskrnl/kd/wrappers/gdbstub.c +++ b/reactos/ntoskrnl/kd/wrappers/gdbstub.c @@ -133,7 +133,7 @@ GdbGetChar(VOID) /* scan for the sequence $# */ PCHAR -GspGetPacket() +GspGetPacket(VOID) { PCHAR Buffer = &GspInBuffer[0]; CHAR Checksum; diff --git a/reactos/ntoskrnl/kd/wrappers/gdbstub_powerpc.c b/reactos/ntoskrnl/kd/wrappers/gdbstub_powerpc.c index 032bc029d47..a0c1ba521ca 100644 --- a/reactos/ntoskrnl/kd/wrappers/gdbstub_powerpc.c +++ b/reactos/ntoskrnl/kd/wrappers/gdbstub_powerpc.c @@ -181,7 +181,7 @@ GdbGetChar(VOID) /* scan for the sequence $# */ PCHAR -GspGetPacket() +GspGetPacket(VOID) { PCHAR Buffer = &GspInBuffer[0]; CHAR Checksum; diff --git a/reactos/ntoskrnl/kdbg/kdb.c b/reactos/ntoskrnl/kdbg/kdb.c index 17f4c78464d..2a00306e6f9 100644 --- a/reactos/ntoskrnl/kdbg/kdb.c +++ b/reactos/ntoskrnl/kdbg/kdb.c @@ -1236,7 +1236,7 @@ KdbpCallMainLoop(VOID) * Disables interrupts, releases display ownership, ... */ static VOID -KdbpInternalEnter() +KdbpInternalEnter(VOID) { PETHREAD Thread; PVOID SavedInitialStack, SavedStackBase, SavedKernelStack; diff --git a/reactos/ntoskrnl/kdbg/kdb_cli.c b/reactos/ntoskrnl/kdbg/kdb_cli.c index f2940ed655a..b18ceb747ce 100644 --- a/reactos/ntoskrnl/kdbg/kdb_cli.c +++ b/reactos/ntoskrnl/kdbg/kdb_cli.c @@ -3512,7 +3512,7 @@ KdbpCliModuleLoaded( * call this function if KdbInitFileBuffer is not NULL. */ VOID -KdbpCliInterpretInitFile() +KdbpCliInterpretInitFile(VOID) { PCHAR p1, p2; INT i; @@ -3561,7 +3561,7 @@ KdbpCliInterpretInitFile() * Reads the KDBinit file from the SystemRoot\System32\drivers\etc directory and executes it. */ VOID -KdbpCliInit() +KdbpCliInit(VOID) { NTSTATUS Status; OBJECT_ATTRIBUTES ObjectAttributes; diff --git a/reactos/ntoskrnl/ke/powerpc/kiinit.c b/reactos/ntoskrnl/ke/powerpc/kiinit.c index 94ed31e51ac..5b564092893 100644 --- a/reactos/ntoskrnl/ke/powerpc/kiinit.c +++ b/reactos/ntoskrnl/ke/powerpc/kiinit.c @@ -41,19 +41,21 @@ extern int syscall_start[], syscall_end, KiDecrementerTrapHandler[], VOID NTAPI -KiSetupSyscallHandler() +KiSetupSyscallHandler(VOID) { paddr_t handler_target; int *source; for(source = syscall_start, handler_target = 0xc00; - source < &syscall_end; - source++, handler_target += sizeof(int)) - SetPhys(handler_target, *source); + source < &syscall_end; + source++, handler_target += sizeof(int)) + { + SetPhys(handler_target, *source); + } } VOID NTAPI -KiSetupDecrementerTrap() +KiSetupDecrementerTrap(VOID) { paddr_t handler_target; int *source; @@ -165,7 +167,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess, 0, 0xFFFFFFFF, &PageDirectory, - TRUE); + TRUE); InitProcess->QuantumReset = MAXCHAR; } else @@ -270,26 +272,26 @@ KiSystemStartupReal(IN PLOADER_PARAMETER_BLOCK LoaderBlock) Cpu = KeNumberProcessors; if (!Cpu) { - /* We'll allocate a page from the end of the kernel area for KPCR. This code will probably - * change when we get SMP support. - */ - info[0].phys = 0; - info[0].proc = 2; - info[0].addr = (vaddr_t)Pcr; - info[0].flags = MMU_KRW_UR; - info[1].phys = 0; - info[1].proc = 2; - info[1].addr = ((vaddr_t)Pcr) + (1 << PAGE_SHIFT); - info[1].flags = MMU_KRW_UR; - info[2].phys = 0; - info[2].proc = 2; - info[2].addr = (vaddr_t)KI_USER_SHARED_DATA; - info[2].flags = MMU_KRW_UR; + /* We'll allocate a page from the end of the kernel area for KPCR. This code will probably + * change when we get SMP support. + */ + info[0].phys = 0; + info[0].proc = 2; + info[0].addr = (vaddr_t)Pcr; + info[0].flags = MMU_KRW_UR; + info[1].phys = 0; + info[1].proc = 2; + info[1].addr = ((vaddr_t)Pcr) + (1 << PAGE_SHIFT); + info[1].flags = MMU_KRW_UR; + info[2].phys = 0; + info[2].proc = 2; + info[2].addr = (vaddr_t)KI_USER_SHARED_DATA; + info[2].flags = MMU_KRW_UR; info[3].phys = 0; info[3].proc = 2; info[3].addr = (vaddr_t)KIP0PCRADDRESS; info[3].flags = MMU_KRW_UR; - MmuMapPage(info, 4); + MmuMapPage(info, 4); } /* Skip initial setup if this isn't the Boot CPU */ @@ -326,7 +328,7 @@ AppCpuInit: /* Check for break-in */ if (KdPollBreakIn()) { - DbgBreakPointWithStatus(DBG_STATUS_CONTROL_C); + DbgBreakPointWithStatus(DBG_STATUS_CONTROL_C); } /* Raise to HIGH_LEVEL */ @@ -347,7 +349,7 @@ KiInitMachineDependent(VOID) { } -void abort() +void abort(VOID) { KeBugCheck(KMODE_EXCEPTION_NOT_HANDLED); while(1); diff --git a/reactos/ntoskrnl/ke/powerpc/stubs.c b/reactos/ntoskrnl/ke/powerpc/stubs.c index 99744da4c6f..2e002842ef6 100644 --- a/reactos/ntoskrnl/ke/powerpc/stubs.c +++ b/reactos/ntoskrnl/ke/powerpc/stubs.c @@ -31,7 +31,7 @@ Ke386CallBios(IN ULONG Int, VOID NTAPI -KiUnexpectedInterrupt() +KiUnexpectedInterrupt(VOID) { } diff --git a/reactos/ntoskrnl/mm/ARM3/i386/init.c b/reactos/ntoskrnl/mm/ARM3/i386/init.c index d4f05fb96de..c5c6bb308ba 100644 --- a/reactos/ntoskrnl/mm/ARM3/i386/init.c +++ b/reactos/ntoskrnl/mm/ARM3/i386/init.c @@ -42,7 +42,7 @@ MMPTE MmDecommittedPte = {{MM_DECOMMIT << MM_PTE_SOFTWARE_PROTECTION_BITS}}; VOID NTAPI INIT_FUNCTION -MiInitializeSessionSpaceLayout() +MiInitializeSessionSpaceLayout(VOID) { // // Set the size of session view, pool, and image diff --git a/reactos/ntoskrnl/mm/ARM3/session.c b/reactos/ntoskrnl/mm/ARM3/session.c index dcdbccea692..0b4865dd8b7 100644 --- a/reactos/ntoskrnl/mm/ARM3/session.c +++ b/reactos/ntoskrnl/mm/ARM3/session.c @@ -37,7 +37,7 @@ PETHREAD MiExpansionLockOwner; FORCEINLINE KIRQL -MiAcquireExpansionLock() +MiAcquireExpansionLock(VOID) { KIRQL OldIrql; diff --git a/reactos/ntoskrnl/mm/ARM3/special.c b/reactos/ntoskrnl/mm/ARM3/special.c index 84b9fd51c46..fcff05bdbab 100644 --- a/reactos/ntoskrnl/mm/ARM3/special.c +++ b/reactos/ntoskrnl/mm/ARM3/special.c @@ -588,7 +588,7 @@ MmFreeSpecialPool(PVOID P) VOID NTAPI -MiTestSpecialPool() +MiTestSpecialPool(VOID) { ULONG i; PVOID p1, p2[100]; diff --git a/reactos/ntoskrnl/mm/mminit.c b/reactos/ntoskrnl/mm/mminit.c index d7167bfc4ca..4838f59e262 100644 --- a/reactos/ntoskrnl/mm/mminit.c +++ b/reactos/ntoskrnl/mm/mminit.c @@ -67,7 +67,7 @@ MiCreateArm3StaticMemoryArea(PVOID BaseAddress, ULONG Size, BOOLEAN Executable) VOID INIT_FUNCTION NTAPI -MiInitSystemMemoryAreas() +MiInitSystemMemoryAreas(VOID) { // // Create all the static memory areas. diff --git a/reactos/ntoskrnl/ps/kill.c b/reactos/ntoskrnl/ps/kill.c index 5fac03df551..b263505fec6 100644 --- a/reactos/ntoskrnl/ps/kill.c +++ b/reactos/ntoskrnl/ps/kill.c @@ -208,7 +208,7 @@ PspReapRoutine(IN PVOID Context) #if DBG VOID NTAPI -PspCheckProcessList() +PspCheckProcessList(VOID) { PLIST_ENTRY Entry; @@ -1066,7 +1066,7 @@ BOOLEAN NTAPI PspIsProcessExiting(IN PEPROCESS Process) { - return Process->Flags & PSF_PROCESS_EXITING_BIT; + return Process->Flags & PSF_PROCESS_EXITING_BIT; } VOID diff --git a/reactos/ntoskrnl/ps/psmgr.c b/reactos/ntoskrnl/ps/psmgr.c index c7f321f1a0d..e78a447f11a 100644 --- a/reactos/ntoskrnl/ps/psmgr.c +++ b/reactos/ntoskrnl/ps/psmgr.c @@ -395,7 +395,7 @@ PspInitializeSystemDll(VOID) BOOLEAN NTAPI INIT_FUNCTION -PspInitPhase1() +PspInitPhase1(VOID) { /* Initialize the System DLL and return status of operation */ if (!NT_SUCCESS(PspInitializeSystemDll())) return FALSE; diff --git a/reactos/ntoskrnl/rtl/libsupp.c b/reactos/ntoskrnl/rtl/libsupp.c index c78d2b97274..da6db038868 100644 --- a/reactos/ntoskrnl/rtl/libsupp.c +++ b/reactos/ntoskrnl/rtl/libsupp.c @@ -92,7 +92,7 @@ RtlpClearInDbgPrint(VOID) KPROCESSOR_MODE NTAPI -RtlpGetMode() +RtlpGetMode(VOID) { return KernelMode; }