aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/str.rs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-04-20 12:46:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-04-20 12:46:18 -0700
commit6a66fdd29ea1695d615fcc93dccfb6dbe2f53b1d (patch)
treed30e5031023d581ec2748bf276721b2c908e2648 /rust/kernel/str.rs
parent23309d600db1abb73b77ca35db96133b7fc35959 (diff)
parentd966c3cab924fb750fefef11e77a6fa07dd5420e (diff)
downloadlinux-6a66fdd29ea1695d615fcc93dccfb6dbe2f53b1d.tar.gz
linux-6a66fdd29ea1695d615fcc93dccfb6dbe2f53b1d.tar.bz2
linux-6a66fdd29ea1695d615fcc93dccfb6dbe2f53b1d.zip
Merge tag 'rust-fixes-6.3' of https://github.com/Rust-for-Linux/linux
Pull Rust fixes from Miguel Ojeda: "Most of these are straightforward. The last one is more complex, but it only touches Rust + GCC builds which are for the moment best-effort. - Code: Missing 'extern "C"' fix. - Scripts: 'is_rust_module.sh' and 'generate_rust_analyzer.py' fixes. - A couple trivial fixes - Build: Rust + GCC build fix and 'grep' warning fix" * tag 'rust-fixes-6.3' of https://github.com/Rust-for-Linux/linux: rust: allow to use INIT_STACK_ALL_ZERO rust: fix regexp in scripts/is_rust_module.sh rust: build: Fix grep warning scripts: generate_rust_analyzer: Handle sub-modules with no Makefile rust: kernel: Mark rust_fmt_argument as extern "C" rust: sort uml documentation arch support table rust: str: fix requierments->requirements typo
Diffstat (limited to 'rust/kernel/str.rs')
-rw-r--r--rust/kernel/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
index b771310fa4a4..cd3d2a6cf1fc 100644
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@ -408,7 +408,7 @@ impl RawFormatter {
/// If `pos` is less than `end`, then the region between `pos` (inclusive) and `end`
/// (exclusive) must be valid for writes for the lifetime of the returned [`RawFormatter`].
pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self {
- // INVARIANT: The safety requierments guarantee the type invariants.
+ // INVARIANT: The safety requirements guarantee the type invariants.
Self {
beg: pos as _,
pos: pos as _,