Skip to contentSkip to conversation

rust: update error.rs documentation

PATCH Applied Onur Özkan 3 participants 4 messages Jul 31, 2025 – Sep 7, 2025 Rust

lore
Share & tools
lore

Onur Özkan

author reviewer
#0 lore raw

v3 cover rust: update error.rs documentation

Changelog:
v1: Removed header link to keep the doc more generic.
v2: Reverted v1 and added missing header links.
v3: Replaced arch/mips/include/uapi/asm/errno.h with
nclude/uapi/asm-generic/errno.h header link.

Onur Özkan (1):
rust: update error.rs documentation

 rust/kernel/error.rs | 2 ++
 1 file changed, 2 insertions(+)

--
2.50.0

author reviewer
#1 lore raw

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

Adds missing header links.

---
 rust/kernel/error.rs | 2 ++
 1 file changed, 2 insertions(+)
rust/kernel/error.rs +2 -0
index 3dee3139fcd4..7c5dac20c480 100644
@@ -2,7 +2,9 @@
 
 //! Kernel errors.
 //!
+//! C header: [`include/linux/errno.h`](srctree/include/linux/errno.h)
 //! C header: [`include/uapi/asm-generic/errno-base.h`](srctree/include/uapi/asm-generic/errno-base.h)
+//! C header: [`include/uapi/asm-generic/errno.h`](srctree/include/uapi/asm-generic/errno.h)
 
 use crate::{
     alloc::{layout::LayoutError, AllocError},

--
2.50.0

reviewer Reviewed-by on v3 1/1
#2 lore raw
Quoted 26 lines · Onur Özkan

Adds missing header links.

---
rust/kernel/error.rs | 2 ++

1 file changed, 2 insertions(+)
rust/kernel/error.rs +2 -1
index 3dee3139fcd4..7c5dac20c480 100644
@@ -2,7 +2,9 @@
 
 //! Kernel errors.
 //!
+//! C header: [`include/linux/errno.h`](srctree/include/linux/errno.h)
 //! C header: [`include/uapi/asm-generic/errno-base.h`](srctree/include/uapi/asm-generic/errno-base.h)
+//! C header: [`include/uapi/asm-generic/errno.h`](srctree/include/uapi/asm-generic/errno.h)
 
 use crate::{
    alloc::{layout::LayoutError, AllocError},
--
Quoted 3 lines

2.50.0

Applied
#3 lore raw
In reply to Onur Özkan
Quoted 6 lines · Onur Özkan

Changelog:
v1: Removed header link to keep the doc more generic.
v2: Reverted v1 and added missing header links.
v3: Replaced arch/mips/include/uapi/asm/errno.h with
nclude/uapi/asm-generic/errno.h header link.

Applied to rust-next -- thanks everyone!

[ Sorted headers. Added line breaks. Reworded commit message. - Miguel ]

Cheers,
Miguel