Skip to content

Commit bda076d

Browse files
tamirdkawasaki
authored andcommitted
rnull: replace kernel::c_str! with C-Strings
C-String literals were added in Rust 1.77. Replace instances of `kernel::c_str!` with C-String literals where possible. Signed-off-by: Tamir Duberstein <[email protected]> Reviewed-by: Daniel Almeida <[email protected]>
1 parent 4a5ddea commit bda076d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/rnull/configfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, E
2525
],
2626
};
2727

28-
kernel::configfs::Subsystem::new(c_str!("rnull"), item_type, try_pin_init!(Config {}))
28+
kernel::configfs::Subsystem::new(c"rnull", item_type, try_pin_init!(Config {}))
2929
}
3030

3131
#[pin_data]

0 commit comments

Comments
 (0)