Fix a couple of unused import warnings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Functions and bitfield definitions for `ID_AA64*` system registers. (e.g. `ID_AA64ISAR0_EL1`)
|
||||
|
||||
use core::{arch::asm, iter};
|
||||
use core::arch::asm;
|
||||
|
||||
bitfield::bitfield! {
|
||||
pub struct AA64Isar0(u64);
|
||||
|
||||
@@ -11,9 +11,7 @@ use core::{
|
||||
|
||||
use fdt::Fdt;
|
||||
|
||||
use crate::{
|
||||
allocator, arch::interrupt, device, devices::graphical_debug, dtb, paging, startup::KernelArgs,
|
||||
};
|
||||
use crate::{allocator, device, devices::graphical_debug, dtb, paging, startup::KernelArgs};
|
||||
|
||||
/// Test of zero values in BSS.
|
||||
static mut BSS_TEST_ZERO: usize = 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ pub unsafe fn init_clint(fdt: &Fdt) {
|
||||
.compatible()
|
||||
.unwrap()
|
||||
.all()
|
||||
.find(|x| ((*x).eq("riscv,clint0")))
|
||||
.find(|x| (*x).eq("riscv,clint0"))
|
||||
.is_some());
|
||||
|
||||
let clint = Clint::new(clock_freq, &clint_node);
|
||||
|
||||
@@ -6,7 +6,6 @@ use crate::{
|
||||
arch::{device::irqchip, start::BOOT_HART_ID},
|
||||
context::signal::excp_handler,
|
||||
memory::GenericPfFlags,
|
||||
panic::stack_trace,
|
||||
ptrace,
|
||||
sync::CleanLockToken,
|
||||
syscall::{self, flag::*},
|
||||
|
||||
@@ -6,12 +6,7 @@ use core::{
|
||||
|
||||
use crate::{
|
||||
allocator,
|
||||
memory::Frame,
|
||||
paging::{PhysicalAddress, PAGE_SIZE},
|
||||
};
|
||||
|
||||
use crate::{
|
||||
arch::{device::serial::init_early, interrupt, paging},
|
||||
arch::{device::serial::init_early, paging},
|
||||
device,
|
||||
devices::graphical_debug,
|
||||
interrupt::exception_handler,
|
||||
|
||||
Reference in New Issue
Block a user