cleanup warning on a debug routine

this is not used under certain combinations of e.g. printing
and swap
This commit is contained in:
bunnie 2024-11-30 02:25:58 +08:00
parent b85b9d2dc2
commit 43988bde05

View file

@ -593,6 +593,7 @@ pub fn pt_walk(root: usize, va: usize) -> Option<usize> {
}
#[cfg(all(any(feature = "debug-print", feature = "swap"), not(feature = "atsama5d27")))]
#[allow(dead_code)]
pub fn pt_walk_swap(root: usize, va: usize, swap_root: usize) -> Option<usize> {
let l1_pt = unsafe { &mut (*((root << 12) as *mut PageTable)) };
let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;