From 43988bde0515d21dd9ff42b4ba7fb62351409fff Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 30 Nov 2024 02:25:58 +0800 Subject: [PATCH] cleanup warning on a debug routine this is not used under certain combinations of e.g. printing and swap --- loader/src/minielf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/minielf.rs b/loader/src/minielf.rs index 3a1e9ec31..e54607d4f 100644 --- a/loader/src/minielf.rs +++ b/loader/src/minielf.rs @@ -593,6 +593,7 @@ pub fn pt_walk(root: usize, va: usize) -> Option { } #[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 { let l1_pt = unsafe { &mut (*((root << 12) as *mut PageTable)) }; let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;