rust: update `error.rs` documentation
Onur Özkan
reviewerPATCH 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
@@ -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
Quoted 5 lines · Onur Özkan
Replaces the outdated (e.g.,
ENOIOCTLCMDis in thesrctree/include/linux/errno.hfile) 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
Onur Özkan
reviewerQuoted 7 lines · On Tue, 29 Jul 2025 21:35:06 +0200 Miguel Ojeda…
Quoted 5 lines · Onur Özkan
Replaces the outdated (e.g.,
ENOIOCTLCMDis in thesrctree/include/linux/errno.hfile) 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
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