[PATCH 3/9] rust: error: add declaration for ENOTRECOVERABLE error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Fabien Parent <fabien.parent@xxxxxxxxxx>

Add a missing errno for ENOTRECOVERABLE.

ENOTRECOVERABLE is returned by get_voltage{_sel} from the Regulator
driver API when a voltage cannot be read at bootup and hasn't been
set yet.

Signed-off-by: Fabien Parent <fabien.parent@xxxxxxxxxx>
---
 rust/kernel/error.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs
index 52c5024324474fc1306047f3fd7516f0023d0313..19c8287032631ee8c4afd3c9c3f1e0709591ba3d 100644
--- a/rust/kernel/error.rs
+++ b/rust/kernel/error.rs
@@ -82,6 +82,7 @@ macro_rules! declare_err {
     declare_err!(EIOCBQUEUED, "iocb queued, will get completion event.");
     declare_err!(ERECALLCONFLICT, "Conflict with recalled state.");
     declare_err!(ENOGRACE, "NFS file lock reclaim refused.");
+    declare_err!(ENOTRECOVERABLE, "State not recoverable.");
 }
 
 /// Generic integer kernel error.

-- 
2.45.2





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux