fix build option

This commit is contained in:
bunnie 2024-06-19 22:04:42 +08:00
parent a081d6cd5d
commit 32893b9b4c

View file

@ -658,6 +658,7 @@ impl MemoryManager {
}
return Err(err);
} else {
#[cfg(feature = "swap")]
if device_ram {
let offset = (claim_phys - self.ram_start) / PAGE_SIZE;
#[cfg(feature = "debug-swap")]