Fix all current build warnings in the kernel.

This commit is contained in:
Andreas Kling 2018-11-09 10:03:21 +01:00
commit 47b7eeda44
Notes: sideshowbarker 2024-07-19 18:31:25 +09:00
10 changed files with 28 additions and 19 deletions

View file

@ -47,7 +47,7 @@ bool is_kmalloc_address(void* ptr)
return true;
if (ptr >= (byte*)PAGE_ALIGNED_BASE_PHYSICAL && ptr < s_next_page_aligned_ptr)
return true;
return ptr >= (void*)BASE_PHYS && ptr <= ((void*)BASE_PHYS + POOL_SIZE);
return (dword)ptr >= BASE_PHYS && (dword)ptr <= (BASE_PHYS + POOL_SIZE);
}
void kmalloc_init()