]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: init: update `stack_try_pin_init` examples
authorJimmy Ostler <jtostler1@gmail.com>
Fri, 20 Dec 2024 06:25:32 +0000 (22:25 -0800)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 13 Jan 2025 22:45:13 +0000 (23:45 +0100)
commit59d5846594e9f82c11af72151de7cef3f325dd4b
tree5f39f4acbc3d9c37b146eab626291674970ee1b7
parent7871c612cade8943694cc254740a374e3fb42a7c
rust: init: update `stack_try_pin_init` examples

Change documentation imports to use `kernel::alloc::AllocError`,
because `KBox::new()` now returns that, instead of the `core`'s
`AllocError`.

Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Jimmy Ostler <jtostler1@gmail.com>
Link: https://lore.kernel.org/r/ec8badbe94c5e78f22315325a7f2ae96129d6a65.1734674670.git.jtostler1@gmail.com
[ Fixed formatting of imports (still unordered). Slightly reworded
  commit. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/init.rs