Fix a bunch of warnings.

This commit is contained in:
4lDO2
2024-07-08 13:01:25 +02:00
parent c86f107344
commit 5e7db80285
52 changed files with 105 additions and 166 deletions
+1 -11
View File
@@ -19,16 +19,6 @@ use rmm::{
};
use crate::syscall::error::{ENOMEM, Error};
/// A memory map area
#[derive(Copy, Clone, Debug, Default)]
#[repr(packed)]
pub struct MemoryArea {
pub base_addr: u64,
pub length: u64,
pub _type: u32,
pub acpi: u32,
}
/// Get the number of frames available
pub fn free_frames() -> usize {
total_frames() - used_frames()
@@ -125,7 +115,7 @@ pub unsafe fn deallocate_p2frame(orig_frame: Frame, order: u32) {
let sibling = Frame::containing_address(PhysicalAddress::new(current.start_address().data() ^ (PAGE_SIZE << merge_order)));
let Some(_) = get_page_info(current) else {
let Some(_cur_info) = get_page_info(current) else {
unreachable!("attempting to free non-allocator-owned page");
};