aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/module.rs
diff options
context:
space:
mode:
authorAsahi Lina <[email protected]>2023-04-03 09:48:10 +0000
committerMiguel Ojeda <[email protected]>2023-04-12 16:41:04 +0000
commit46384d0990bf99ed8b597e8794ea581e2a647710 (patch)
tree2a522f2c675d53718ab0446833ab8f9054ff83b2 /rust/macros/module.rs
parentrust: sync: arc: Add UniqueArc<MaybeUninit<T>::assume_init() (diff)
downloadkernel-46384d0990bf99ed8b597e8794ea581e2a647710.tar.gz
kernel-46384d0990bf99ed8b597e8794ea581e2a647710.zip
rust: error: Rename to_kernel_errno() -> to_errno()
This is kernel code, so specifying "kernel" is redundant. Let's simplify things and just call it to_errno(). Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Signed-off-by: Asahi Lina <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
-rw-r--r--rust/macros/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/macros/module.rs b/rust/macros/module.rs
index 5e7ab83908a0..fb1244f8c2e6 100644
--- a/rust/macros/module.rs
+++ b/rust/macros/module.rs
@@ -278,7 +278,7 @@ pub(crate) fn module(ts: TokenStream) -> TokenStream {
return 0;
}}
Err(e) => {{
- return e.to_kernel_errno();
+ return e.to_errno();
}}
}}
}}