Author: dgorbachev
Date: Wed Jul 1 13:59:47 2009
New Revision: 41724
URL:
http://svn.reactos.org/svn/reactos?rev=41724&view=rev
Log:
Fix some warnings / bugs.
Modified:
trunk/reactos/ntoskrnl/include/internal/mm.h
trunk/reactos/ntoskrnl/ke/freeldr.c
trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c
trunk/reactos/ntoskrnl/mm/freelist.c
Modified: trunk/reactos/ntoskrnl/include/internal/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1] Wed Jul 1 13:59:47 2009
@@ -1186,8 +1186,8 @@
return MiMapPageInHyperSpace(HyperProcess, Page, &HyperIrql);
}
+FORCEINLINE
PVOID
-FORCEINLINE
MiMapPageToZeroInHyperSpace(IN PFN_NUMBER Page)
{
PMMPFN Pfn1 = MiGetPfnEntry(Page);
Modified: trunk/reactos/ntoskrnl/ke/freeldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/freeldr.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/freeldr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/freeldr.c [iso-8859-1] Wed Jul 1 13:59:47 2009
@@ -309,7 +309,7 @@
}
/* Check if the block matches us, and we haven't tried combining yet */
- if ((BlockType == MemoryType) && !(Combined))
+ if (((TYPE_OF_MEMORY)BlockType == MemoryType) && !(Combined))
{
/* Check if it starts where we end */
if (BlockBegin == PageEnd)
Modified: trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/mdlsup.c [iso-8859-1] Wed Jul 1 13:59:47 2009
@@ -328,7 +328,7 @@
//
// Get the correct cache type
//
- IsIoMapping = Mdl->MdlFlags & MDL_IO_SPACE;
+ IsIoMapping = (Mdl->MdlFlags & MDL_IO_SPACE) != 0;
CacheAttribute = MiPlatformCacheAttributes[IsIoMapping][CacheType];
//
Modified: trunk/reactos/ntoskrnl/mm/freelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/freelist.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/freelist.c [iso-8859-1] Wed Jul 1 13:59:47 2009
@@ -453,7 +453,7 @@
KIRQL OldIrql;
PLIST_ENTRY ListEntry;
PPHYSICAL_PAGE Pfn1;
- ULONG LookForZeroedPages;
+ INT LookForZeroedPages;
ASSERT (KeGetCurrentIrql() <= APC_LEVEL);
//
@@ -689,7 +689,7 @@
// Check if we've reached the end
//
Page = *MdlPage;
- if (Page == -1) break;
+ if (Page == (PFN_NUMBER)-1) break;
//
// Get the PFN entry for the page and check if we should zero it out