Skip to contentSkip to conversation

rust: update `error.rs` documentation

PATCH Superseded Onur Özkan 2 participants 4 messages Jul 29, 2025 – Jul 30, 2025 Rust

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Onur Özkan

author reviewer
#0 lore raw

PATCH 1/1 rust: update `error.rs` documentation

Replaces the outdated (e.g., ENOIOCTLCMD is in the srctree/include/linux/errno.h file) and overly specific description referring to a single C header with a more generic one.

---
 rust/kernel/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -1
index 3dee3139fcd4..a98dcf88d63e 100644
@@ -2,7 +2,7 @@
 
 //! Kernel errors.
 //!
-//! C header: [`include/uapi/asm-generic/errno-base.h`](srctree/include/uapi/asm-generic/errno-base.h)
+//! Provides Rust representations of kernel error codes derived from `bindgen` bindings.
 
 use crate::{
     alloc::{layout::LayoutError, AllocError},

--
2.50.0

#1 lore raw
Quoted 5 lines · Onur Özkan

Replaces the outdated (e.g., ENOIOCTLCMD is in the srctree/include/linux/errno.h file) and overly specific description referring to a single C header with a more generic one.

Yeah, we should have the other headers there, but I would avoid removing the links entirely (the links are meant to be there as a reference and get converted to actual links on render).

Thanks!

Cheers,
Miguel

author reviewer
#2 lore raw
Quoted 7 lines · On Tue, 29 Jul 2025 21:35:06 +0200 Miguel Ojeda…
Quoted 5 lines · Onur Özkan

Replaces the outdated (e.g., ENOIOCTLCMD is in the srctree/include/linux/errno.h file) and overly specific description referring to a single C header with a more generic one.

Quoted 8 lines

Yeah, we should have the other headers there, but I would avoid removing the links entirely (the links are meant to be there as a reference and get converted to actual links on render).

Thanks!

Cheers,
Miguel

I thought with that approach the documentation can become outdated again at some point, but I can still do it and send over v2 if you would prefer.

Regards,
Onur

#3 lore raw
Quoted 4 lines · Onur Özkan

I thought with that approach the documentation can become outdated again at some point, but I can still do it and send over v2 if you would prefer.

That is fine -- documentation is never perfect, but it is all about the chance of being outdated/wrong vs. the benefits.

In this case, I think the files getting renamed and this line not getting updated is low (and it would be still clear), and we can eventually check if the files exist on generation.

Cheers,
Miguel