From 2fcc7219e4f33cd2fee20b6326accd50233e9827 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sun, 18 Dec 2022 20:47:44 +0100 Subject: [PATCH] Fix build for Linux 6.1 --- rust_out_of_tree.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust_out_of_tree.rs b/rust_out_of_tree.rs index e280409..58cc9ba 100644 --- a/rust_out_of_tree.rs +++ b/rust_out_of_tree.rs @@ -6,10 +6,10 @@ use kernel::prelude::*; module! { type: RustOutOfTree, - name: "rust_out_of_tree", - author: "Rust for Linux Contributors", - description: "Rust out-of-tree sample", - license: "GPL", + name: b"rust_out_of_tree", + author: b"Rust for Linux Contributors", + description: b"Rust out-of-tree sample", + license: b"GPL", } struct RustOutOfTree { @@ -17,7 +17,7 @@ struct RustOutOfTree { } impl kernel::Module for RustOutOfTree { - fn init(_name: &'static CStr, _module: &'static ThisModule) -> Result { + fn init(_module: &'static ThisModule) -> Result { pr_info!("Rust out-of-tree sample (init)\n"); let mut numbers = Vec::new();