We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b4ad0 commit 2e6fee0Copy full SHA for 2e6fee0
1 file changed
drivers/block/rnull.rs
@@ -20,6 +20,7 @@ use kernel::{
20
error::Result,
21
new_mutex, pr_info,
22
prelude::*,
23
+ str::CStr,
24
sync::{Arc, Mutex},
25
types::ARef,
26
};
@@ -36,7 +37,7 @@ struct NullBlkModule {
36
37
}
38
39
impl kernel::Module for NullBlkModule {
- fn init(_module: &'static ThisModule) -> Result<Self> {
40
+ fn init(_name: &'static CStr, _module: &'static ThisModule) -> Result<Self> {
41
pr_info!("Rust null_blk loaded\n");
42
let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?;
43
0 commit comments