]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: error: import `kernel`'s `LayoutError` instead of `core`'s
authorJimmy Ostler <jtostler1@gmail.com>
Fri, 20 Dec 2024 06:25:31 +0000 (22:25 -0800)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 13 Jan 2025 22:45:13 +0000 (23:45 +0100)
commit7871c612cade8943694cc254740a374e3fb42a7c
tree726f86bc23fc12a4dfae8f5d24025886554f82cd
parentb6357e26865a25650e49c4eb5abe6ef57ae4ede1
rust: error: import `kernel`'s `LayoutError` instead of `core`'s

Import the internal (`kernel::alloc`) version of `LayoutError` instead
of the `core::alloc` one.

In particular, this results in switching the type in the existing
`From<LayoutError> for Error` implementation.

Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Jimmy Ostler <jtostler1@gmail.com>
Link: https://lore.kernel.org/r/fe58a02189e8804a9eabdd01cb1927d4c491d79c.1734674670.git.jtostler1@gmail.com
[ Reworded commit. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/error.rs