Skip to content

Commit 5cba8dc

Browse files
committed
riscv64: fix clippy
1 parent cb2b4e8 commit 5cba8dc

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/arch/riscv64/kernel/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use alloc::vec::Vec;
1515
use core::ptr;
1616
use core::sync::atomic::{AtomicPtr, AtomicU32, AtomicU64, Ordering};
1717

18-
use free_list::PageLayout;
1918
use memory_addresses::PhysAddr;
2019
use riscv::register::sstatus;
2120

@@ -25,7 +24,6 @@ use crate::arch::riscv64::kernel::processor::lsb;
2524
use crate::config::KERNEL_STACK_SIZE;
2625
use crate::env;
2726
use crate::init_cell::InitCell;
28-
use crate::mm::{FrameAlloc, PageRangeAllocator};
2927
use crate::mm::stack_alloc::allocate_stack;
3028

3129
// Used to store information about available harts. The index of the hart in the vector

src/arch/riscv64/mm/paging.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use core::marker::PhantomData;
22
use core::ptr;
3-
use core::sync::atomic::{AtomicPtr, AtomicU64, AtomicUsize, Ordering};
3+
use core::sync::atomic::{AtomicUsize, Ordering};
44
use align_address::Align;
55
use free_list::PageLayout;
66
use hermit_sync::SpinMutex;
@@ -662,7 +662,6 @@ pub unsafe fn enable_page_table() {
662662
asm::sfence_vma_all();
663663
}
664664

665-
#[cfg(feature = "smp")]
666665
SATP_VALUE.store(
667666
((mode as usize) << 60) | (asid << 44) | ppn,
668667
Ordering::Relaxed

0 commit comments

Comments
 (0)