Merge pull request #3 from rnestler/fix-build-for-linux-6.1

Fix build for Linux 6.1
This commit is contained in:
Miguel Ojeda 2023-01-21 13:02:19 +01:00 committed by GitHub
commit a5de4e66ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,10 +6,10 @@ use kernel::prelude::*;
module! { module! {
type: RustOutOfTree, type: RustOutOfTree,
name: "rust_out_of_tree", name: b"rust_out_of_tree",
author: "Rust for Linux Contributors", author: b"Rust for Linux Contributors",
description: "Rust out-of-tree sample", description: b"Rust out-of-tree sample",
license: "GPL", license: b"GPL",
} }
struct RustOutOfTree { struct RustOutOfTree {
@ -17,7 +17,7 @@ struct RustOutOfTree {
} }
impl kernel::Module for RustOutOfTree { impl kernel::Module for RustOutOfTree {
fn init(_name: &'static CStr, _module: &'static ThisModule) -> Result<Self> { fn init(_module: &'static ThisModule) -> Result<Self> {
pr_info!("Rust out-of-tree sample (init)\n"); pr_info!("Rust out-of-tree sample (init)\n");
let mut numbers = Vec::new(); let mut numbers = Vec::new();