Thread (4 messages) 4 messages, 3 authors, 2025-10-06

[PATCH] rust: file: add intra-doc link for 'EBADF'

From: <hidden>
Date: 2025-09-30 09:27:08
Also in: linux-fsdevel, lkml
Subsystem: filesystems (vfs and infrastructure), rust, the rest · Maintainers: Alexander Viro, Christian Brauner, Miguel Ojeda, Linus Torvalds

From: Tong Li <redacted>

Suggested-by: Onur Özkan <redacted>
Link: https://github.com/Rust-for-Linux/linux/issues/1186
Signed-off-by: Tong Li <redacted>
---
 rust/kernel/fs/file.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs
index 67a3654f0fd3..f3153f4c8560 100644
--- a/rust/kernel/fs/file.rs
+++ b/rust/kernel/fs/file.rs
@@ -448,9 +448,9 @@ fn drop(&mut self) {
     }
 }
 
-/// Represents the `EBADF` error code.
+/// Represents the [`EBADF`] error code.
 ///
-/// Used for methods that can only fail with `EBADF`.
+/// Used for methods that can only fail with [`EBADF`].
 #[derive(Copy, Clone, Eq, PartialEq)]
 pub struct BadFdError;
 
-- 
2.51.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help