diff options
Diffstat (limited to 'drivers/char/rust_example/src/lib.rs')
-rw-r--r-- | drivers/char/rust_example/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/rust_example/src/lib.rs b/drivers/char/rust_example/src/lib.rs index 9f542d6929db..56562b840d9c 100644 --- a/drivers/char/rust_example/src/lib.rs +++ b/drivers/char/rust_example/src/lib.rs @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #![no_std] +#![feature(global_asm)] use kernel::prelude::*; @@ -11,7 +12,7 @@ struct RustExample { impl KernelModule for RustExample { fn init() -> KernelResult<Self> { println!("Rust Example (init)"); - println!("Am I built-in? {}", !cfg!(module)); + println!("Am I built-in? {}", !cfg!(MODULE)); Ok(RustExample { message: "on the heap!".to_owned(), }) |