Skip to content

Commit b1da1b5

Browse files
committed
rust_out_of_tree: use string literals in module! macro
See commit 593e65924b2e ("rust: take str literal instead bstr literal in `module!` macro") in the main repository: For simplicity (avoid parsing), escape sequences and raw string literals are not yet handled. Module names, aliases and license strings are restricted to ASCII only. Signed-off-by: Gary Guo <[email protected]> Link: Rust-for-Linux/linux#252 Link: https://lore.kernel.org/lkml/[email protected]/ Link: Rust-for-Linux/linux@593e659 Signed-off-by: Miguel Ojeda <[email protected]>
1 parent e22f8fe commit b1da1b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust_out_of_tree.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use kernel::prelude::*;
66

77
module! {
88
type: RustOutOfTree,
9-
name: b"rust_out_of_tree",
10-
author: b"Rust for Linux Contributors",
11-
description: b"Rust out-of-tree sample",
12-
license: b"GPL",
9+
name: "rust_out_of_tree",
10+
author: "Rust for Linux Contributors",
11+
description: "Rust out-of-tree sample",
12+
license: "GPL",
1313
}
1414

1515
struct RustOutOfTree {

0 commit comments

Comments
 (0)