File tree Expand file tree Collapse file tree 5 files changed +2
-45
lines changed Expand file tree Collapse file tree 5 files changed +2
-45
lines changed Original file line number Diff line number Diff line change @@ -260,18 +260,14 @@ impl Device for BlockDevice {
260
260
}
261
261
262
262
struct PartitionBlockDevice {
263
- sref : Weak < Self > ,
264
-
265
263
offset : usize , // offset in sectors
266
264
size : usize , // capacity in sectors
267
265
device : Arc < dyn BlockDeviceInterface > ,
268
266
}
269
267
270
268
impl PartitionBlockDevice {
271
269
fn new ( offset : usize , size : usize , device : Arc < dyn BlockDeviceInterface > ) -> Arc < Self > {
272
- Arc :: new_cyclic ( |sref| Self {
273
- sref : sref. clone ( ) ,
274
-
270
+ Arc :: new ( Self {
275
271
offset,
276
272
size,
277
273
device,
Original file line number Diff line number Diff line change 31
31
//! aero_kernel::module_exit!(hello_exit);
32
32
//! ```
33
33
34
- use crate :: { drivers, fs, utils :: linker :: LinkerSymbol } ;
34
+ use crate :: { drivers, fs} ;
35
35
36
36
/// Inner helper function to make sure the function provided to the [module_init] macro
37
37
/// has a valid function signature. This function returns the passed module init function as
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ use aero_syscall::signal::SigProcMask;
21
21
use aero_syscall:: { prelude:: * , TimeSpec } ;
22
22
use aero_syscall:: { OpenFlags , Stat , SyscallError } ;
23
23
24
- use crate :: fs:: cache:: DirCacheImpl ;
25
24
use crate :: fs:: epoll:: EPoll ;
26
25
use crate :: fs:: eventfd:: EventFd ;
27
26
use crate :: fs:: file_table:: DuplicateHint ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ fn get_cpu_count() -> usize {
32
32
33
33
pub mod bitmap;
34
34
pub mod buffer;
35
- pub mod linker;
36
35
pub mod sync;
37
36
38
37
pub fn validate_mut_ptr < T > ( ptr : * mut T ) -> Option < & ' static mut T > {
You can’t perform that action at this time.
0 commit comments