Skip to content

Commit 69ba00f

Browse files
GnurouDanilo Krummrich
authored andcommitted
rust: make ETIMEDOUT error available
We will use this error in the nova-core driver. Reviewed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Miguel Ojeda <ojeda@kernel.org> Link: https://lore.kernel.org/r/20250619-nova-frts-v6-4-ecf41ef99252@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent a002488 commit 69ba00f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/kernel/error.rs

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

0 commit comments

Comments
 (0)