This repository was archived by the owner on Mar 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
#![ feature( alloc) ]
3
3
4
4
extern crate alloc;
5
- use alloc:: String ;
6
5
use alloc:: borrow:: ToOwned ;
6
+ use alloc:: String ;
7
7
8
8
#[ macro_use]
9
9
extern crate linux_kernel_module;
@@ -15,7 +15,9 @@ struct HelloWorldModule {
15
15
impl linux_kernel_module:: KernelModule for HelloWorldModule {
16
16
fn init ( ) -> linux_kernel_module:: KernelResult < Self > {
17
17
println ! ( "Hello kernel module!" ) ;
18
- Ok ( HelloWorldModule { message : "on the heap!" . to_owned ( ) } )
18
+ Ok ( HelloWorldModule {
19
+ message : "on the heap!" . to_owned ( ) ,
20
+ } )
19
21
}
20
22
}
21
23
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ use core::marker;
4
4
use core:: mem;
5
5
6
6
use bindings;
7
- use error;
8
7
use c_types;
8
+ use error;
9
9
10
10
pub struct FileSystemRegistration < T : FileSystem > {
11
11
_phantom : marker:: PhantomData < T > ,
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ extern crate bitflags;
7
7
8
8
mod allocator;
9
9
pub mod bindings;
10
+ mod c_types;
10
11
mod error;
11
12
pub mod filesystem;
12
13
pub mod printk;
13
- mod c_types;
14
14
15
15
pub use alloc:: format;
16
16
You can’t perform that action at this time.
0 commit comments