Skip to content

Commit e385e94

Browse files
xyn-ackojeda
authored andcommitted
rust: error: Add EOVERFLOW
Trivial addition for missing EOVERFLOW error. This is used by a subsequent patch that might require returning EOVERFLOW as a result of `checked_mul`. Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Signed-off-by: Abdiel Janulgue <[email protected]> Acked-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 100af58 commit e385e94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub mod code {
6464
declare_err!(EPIPE, "Broken pipe.");
6565
declare_err!(EDOM, "Math argument out of domain of func.");
6666
declare_err!(ERANGE, "Math result not representable.");
67+
declare_err!(EOVERFLOW, "Value too large for defined data type.");
6768
declare_err!(ERESTARTSYS, "Restart the system call.");
6869
declare_err!(ERESTARTNOINTR, "System call was interrupted by a signal and will be restarted.");
6970
declare_err!(ERESTARTNOHAND, "Restart if no handler.");

0 commit comments

Comments
 (0)