Skip to content

Commit 2e6fee0

Browse files
committed
rust: block: rnull: Adapt to asahi's rust base branch
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 04b4ad0 commit 2e6fee0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/block/rnull.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use kernel::{
2020
error::Result,
2121
new_mutex, pr_info,
2222
prelude::*,
23+
str::CStr,
2324
sync::{Arc, Mutex},
2425
types::ARef,
2526
};
@@ -36,7 +37,7 @@ struct NullBlkModule {
3637
}
3738

3839
impl kernel::Module for NullBlkModule {
39-
fn init(_module: &'static ThisModule) -> Result<Self> {
40+
fn init(_name: &'static CStr, _module: &'static ThisModule) -> Result<Self> {
4041
pr_info!("Rust null_blk loaded\n");
4142
let tagset = Arc::pin_init(TagSet::new(1, 256, 1), flags::GFP_KERNEL)?;
4243

0 commit comments

Comments
 (0)