From: Eliot Courtney Date: Fri, 6 Mar 2026 07:22:00 +0000 (+0900) Subject: rust: add EMSGSIZE error code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f237a0d17fb95f60de15386a6ab968af4bd4d4;p=thirdparty%2Fkernel%2Flinux.git rust: add EMSGSIZE error code Add the EMSGSIZE error code, which indicates that a message is too long. Tested-by: Zhi Wang Acked-by: Miguel Ojeda Reviewed-by: Gary Guo Signed-off-by: Eliot Courtney Link: https://patch.msgid.link/20260306-cmdq-continuation-v6-3-cc7b629200ee@nvidia.com Signed-off-by: Alexandre Courbot --- diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 258b12afdcba3..10fcf1f0404da 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -67,6 +67,7 @@ pub mod code { declare_err!(EDOM, "Math argument out of domain of func."); declare_err!(ERANGE, "Math result not representable."); declare_err!(EOVERFLOW, "Value too large for defined data type."); + declare_err!(EMSGSIZE, "Message too long."); declare_err!(ETIMEDOUT, "Connection timed out."); declare_err!(ERESTARTSYS, "Restart the system call."); declare_err!(ERESTARTNOINTR, "System call was interrupted by a signal and will be restarted.");