summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2020-09-05 03:13:37 +0200
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2020-09-05 03:13:37 +0200
commit351ab09b7d2b338d34125bfaf684348303cb6909 (patch)
tree57445d218be5e3e6c0e556312bb3abf24e1d80de
parent40cbc3f043eeea8b8f27ece943f42437a264239b (diff)
Alex's review
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
-rw-r--r--Documentation/rust/quick-start.rst2
-rw-r--r--rust/kernel/src/filesystem.rs2
-rw-r--r--rust/kernel/src/lib.rs2
3 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst
index b88da6a9f9b4..925848b82c2f 100644
--- a/Documentation/rust/quick-start.rst
+++ b/Documentation/rust/quick-start.rst
@@ -8,7 +8,7 @@ This document describes how to get started with Rust kernel development.
Requirements
------------
-A nightly Rust toolchain (at least ``rustc``, ``cargo`` and ``rustfmt``) is required. In the future, this restriction will be lifted. If you are using ``rustup``, run::
+A recent nightly Rust toolchain (at least ``rustc``, ``cargo`` and ``rustfmt``) is required, e.g. `nightly-2020-08-27`. In the future, this restriction will be lifted. If you are using ``rustup``, run::
rustup toolchain install nightly
diff --git a/rust/kernel/src/filesystem.rs b/rust/kernel/src/filesystem.rs
index 11b415008f68..a5b7774292f1 100644
--- a/rust/kernel/src/filesystem.rs
+++ b/rust/kernel/src/filesystem.rs
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
+// TODO: `filesystem` is really incomplete -- deletion to be considered
+
use alloc::boxed::Box;
use core::default::Default;
use core::marker;
diff --git a/rust/kernel/src/lib.rs b/rust/kernel/src/lib.rs
index bdb070cca953..1469c77247bc 100644
--- a/rust/kernel/src/lib.rs
+++ b/rust/kernel/src/lib.rs
@@ -51,6 +51,8 @@ macro_rules! kernel_module {
($module:ty, $($name:ident : $value:expr),*) => {
static mut __MOD: Option<$module> = None;
+ // Built-in modules are initialized through an initcall pointer
+ //
// TODO: find a proper way to emulate the C macro, including
// dealing with `HAVE_ARCH_PREL32_RELOCATIONS`
#[cfg(not(module))]