mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 17:36:25 +04:00
codecheck: Fix warnings
This commit is contained in:
parent
8c3f6c2ee5
commit
64004a4383
@ -11,6 +11,6 @@ pub trait File: Send + Sync {
|
||||
fn write(&self, buf: UserBuffer) -> usize;
|
||||
}
|
||||
|
||||
pub use inode::{list_apps, open_file, OSInode, OpenFlags};
|
||||
pub use pipe::{make_pipe, Pipe};
|
||||
pub use inode::{list_apps, open_file, OpenFlags};
|
||||
pub use pipe::make_pipe;
|
||||
pub use stdio::{Stdin, Stdout};
|
||||
|
@ -12,7 +12,7 @@ pub use memory_set::{kernel_token, MapPermission, MemorySet, KERNEL_SPACE};
|
||||
use page_table::PTEFlags;
|
||||
pub use page_table::{
|
||||
translated_byte_buffer, translated_ref, translated_refmut, translated_str, PageTable,
|
||||
PageTableEntry, UserBuffer, UserBufferIterator,
|
||||
PageTableEntry, UserBuffer,
|
||||
};
|
||||
|
||||
pub fn init() {
|
||||
|
@ -170,7 +170,7 @@ fn call_user_signal_handler(sig: usize, signal: SignalFlags) {
|
||||
task_inner.signals ^= signal;
|
||||
|
||||
// backup trapframe
|
||||
let mut trap_ctx = task_inner.get_trap_cx();
|
||||
let trap_ctx = task_inner.get_trap_cx();
|
||||
task_inner.trap_ctx_backup = Some(*trap_ctx);
|
||||
|
||||
// modify trapframe
|
||||
|
Loading…
Reference in New Issue
Block a user