Message ID | 20230930144958.46051-1-wedsonaf@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp442118vqb; Sat, 30 Sep 2023 08:20:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbyEsLQCHw3JhWOFL8Byg/bk4UWrvoPvfcNJZ+sn4n4RjKprP3+bZB9PpumJ2g0K/Bnlqd X-Received: by 2002:a05:6e02:1c49:b0:34f:cf55:779f with SMTP id d9-20020a056e021c4900b0034fcf55779fmr8749960ilg.28.1696087236175; Sat, 30 Sep 2023 08:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696087236; cv=none; d=google.com; s=arc-20160816; b=w5rl37EyVobvhgtcBJDaUa05AGss09LWrKSvgdOoiHI+sODA4MTJ/FO7yAr9PjollO c6y+n7Z7qd5dBo+1txPCFbkcKRTeGg4G3jYnbOPbsIkV0C0j/2gdUk7efeMH6PQKiNBh +NTefqLAue00oW/mrBUR74ufVmPNeRViSC3oEv2X0wQkDFMD3fjy5qSontj89FI8MUhj QQs/2JrrFuxcya5ljfRAnX07Irccu+5+s3T6mnbSl9AIlCFeDAtaXESyuzzmkE6J3gWO Ut9YlVaYub0b9k+QYqLaADYvrP2+ne5iMp1U/LlhPvLGoy/WCIFMPuYBrRB16gbyHU5a 06jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qHMHOCbixbP361tjm3x9vQKWGYP3T+423b+GFOCAXdk=; fh=BpeH/FUAN0wxLMH3ClwVqRp0rua8Kbn4MIwmp4atozc=; b=VoHmu1NadvvxWpr0wR4FCfYxzQWaYX+dvnlIhZdOR76DPIy/Qt9Gu+mYxMjlQ5s7SM rLsdKlzK8DDlABd28MQwjhl6LKN/sGsrFYqBBSa1ADz/is3KwPKb8I65IPsg9PKWmrX8 5njENigD0FznY5iLoRV6QINY6HY0aqKeT3qu0WD73v0/GtV9mrKhZNUHm8PvdFTjv47j Ndlg1GwUoQl7sW6AW28pOmJnzJYSOKeCCjEv4ZY3EFrFRNdi6sNWMBrvat2EVUDIdlfc 95C5iCp3AS+R3xrMEx3mrw8yvdL4xDltidKA6aq5lAZb6kZJvv1CzL+WtZEGiDWd3BrZ oA8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mIlmEJm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a21-20020a637055000000b005859a7eaf1csi4350963pgn.375.2023.09.30.08.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 08:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mIlmEJm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1DEF4826EBBE; Sat, 30 Sep 2023 07:50:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234307AbjI3OuT (ORCPT <rfc822;chrisfriedt@gmail.com> + 20 others); Sat, 30 Sep 2023 10:50:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbjI3OuT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 30 Sep 2023 10:50:19 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1FDDB7; Sat, 30 Sep 2023 07:50:15 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-690f7bf73ddso12016054b3a.2; Sat, 30 Sep 2023 07:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696085415; x=1696690215; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qHMHOCbixbP361tjm3x9vQKWGYP3T+423b+GFOCAXdk=; b=mIlmEJm1YDOHynGLzxrHF7QvI0cFKypZsgREhL/eabWa8S5yJoQXJKolg0xUcDs7Vj 4TD0l38MjiYSnfIy3Z7Ghl/gdPuT7xcMiXMUfW51OPIbOplxxxjeSmiXyvhlt26G/ChU O3lH7Ffpg+SlcAmy3GgYyq04pI2CPQbTHdh1qCUm1k04H7PQhTmKwwhthB9CK569oz2S AihLVxQmSfa5CGkJEVFGyQM2yHRvQOOuJQU5IGsvk4spulkR5CBiGSE0RPIt3b/kc2oI bgOr1wzOjVu/L6H71xKHtcV/vR6Xe6W1j41V46aSvqIGDLFL/9h78EgVZZvqGtWy4MOo SZUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696085415; x=1696690215; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qHMHOCbixbP361tjm3x9vQKWGYP3T+423b+GFOCAXdk=; b=Qfyokfn4yWY9tMa3ZKk7be6A31Key4IYlF7RzTktgk/Qcy9mz0yv+44TqOMW2Kazl2 Gfr3w2y3NeSF1uczfBOV6lrx6XFwM1Vy3Q+WBxVNPuPXEKLTwgcUBZ6fXmdd4howd/OS DxoyaQGGSYQuh6q+4HoZ/SxLcRyg6HV10y2Uai171O+tkoVq2HO/o5KufrGjuAiFdAiX zUI8/aC5xtfafAAy8GC4FRis7aE2e/JqpbkDpWVpPkJL4tvra3CNEmFNEsuW96+Dytz/ jmjaaVxinlR8da9rT0mHIG2GQC/DfaeqCA9uAB9IpUOaUW9IqOXKgEmlC55MiUWmtfpR fcBQ== X-Gm-Message-State: AOJu0Yycv2s8fo6M1salTq7enU9OuUqgSckRtemYEnzBrjXA9B3cHu+J 17gYERLDqAxfavvodo1vuBHr4ka7QbAvcQ== X-Received: by 2002:a05:6a00:190b:b0:690:41a1:9b6c with SMTP id y11-20020a056a00190b00b0069041a19b6cmr6919885pfi.10.1696085415004; Sat, 30 Sep 2023 07:50:15 -0700 (PDT) Received: from wedsonaf-dev.home.lan ([189.124.190.154]) by smtp.googlemail.com with ESMTPSA id x9-20020a056a00270900b00690fdeb5c07sm17201762pfv.13.2023.09.30.07.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 07:50:14 -0700 (PDT) From: Wedson Almeida Filho <wedsonaf@gmail.com> To: rust-for-linux@vger.kernel.org Cc: Miguel Ojeda <ojeda@kernel.org>, Alex Gaynor <alex.gaynor@gmail.com>, Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>, =?utf-8?q?B?= =?utf-8?q?j=C3=B6rn_Roy_Baron?= <bjorn3_gh@protonmail.com>, Benno Lossin <benno.lossin@proton.me>, Andreas Hindborg <a.hindborg@samsung.com>, Alice Ryhl <aliceryhl@google.com>, linux-kernel@vger.kernel.org, Wedson Almeida Filho <walmeida@microsoft.com> Subject: [PATCH] rust: error: fix the description for `ECHILD` Date: Sat, 30 Sep 2023 11:49:58 -0300 Message-Id: <20230930144958.46051-1-wedsonaf@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 07:50:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778476369971441024 X-GMAIL-MSGID: 1778476369971441024 |
Series |
rust: error: fix the description for `ECHILD`
|
|
Commit Message
Wedson Almeida Filho
Sept. 30, 2023, 2:49 p.m. UTC
From: Wedson Almeida Filho <walmeida@microsoft.com> A mistake was made and the description of `ECHILD` is wrong (it reuses the description of `ENOEXEC`). This fixes it to reflect what's in `errno-base.h`. Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> --- rust/kernel/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
Comments
On Sat, Sep 30, 2023 at 10:50 AM Wedson Almeida Filho <wedsonaf@gmail.com> wrote: > > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- Reviewed-by: Trevor Gross <tmgross@umich.edu>
On 9/30/23 11:49, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- > [...] Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
On 9/30/23 16:49, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- > rust/kernel/error.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Alice Ryhl <aliceryhl@google.com>
On 30 Sep 2023, at 16:49, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- Reviewed-by: Finn Behrens <me@kloenk.dev>
On Sat, Sep 30, 2023 at 4:50 PM Wedson Almeida Filho <wedsonaf@gmail.com> wrote: > > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Applied to `rust-fixes`, thanks everyone! Cheers, Miguel
On 30.09.23 16:49, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho <walmeida@microsoft.com> > > A mistake was made and the description of `ECHILD` is wrong (it reuses > the description of `ENOEXEC`). This fixes it to reflect what's in > `errno-base.h`. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- > rust/kernel/error.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs > index 05fcab6abfe6..bab2c043fc42 100644 > --- a/rust/kernel/error.rs > +++ b/rust/kernel/error.rs > @@ -37,7 +37,7 @@ macro_rules! declare_err { > declare_err!(E2BIG, "Argument list too long."); > declare_err!(ENOEXEC, "Exec format error."); > declare_err!(EBADF, "Bad file number."); > - declare_err!(ECHILD, "Exec format error."); > + declare_err!(ECHILD, "No child process."); Strictly speaking, `errno-base.h` documents this as "No child processes" (note the plural), but I am fine with taking it as-is. Reviewed-by: Benno Lossin <benno.lossin@proton.me>
On Mon, Oct 9, 2023 at 4:54 PM Benno Lossin <benno.lossin@proton.me> wrote: > > Strictly speaking, `errno-base.h` documents this as "No child > processes" (note the plural), but I am fine with taking it as-is. Good catch. POSIX seems to use both (General Information vs. `<errno.h>`), so perhaps that is where Wedson picked it from. Given the kernel uses the plural, and that the commit message says it mimics `errno-base.h`, I have amended it. Cheers, Miguel 1: 77983c791960 ! 1: 17bfcd6a8153 rust: error: fix the description for `ECHILD` @@ Commit message Fixes: 266def2a0f5b ("rust: error: add codes from `errno-base.h`") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20230930144958.46051-1-wedsonaf@gmail.com + [ Use the plural, as noticed by Benno. ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> ## rust/kernel/error.rs ## @@ rust/kernel/error.rs: macro_rules! declare_err { declare_err!(ENOEXEC, "Exec format error."); declare_err!(EBADF, "Bad file number."); - declare_err!(ECHILD, "Exec format error."); -+ declare_err!(ECHILD, "No child process."); ++ declare_err!(ECHILD, "No child processes."); declare_err!(EAGAIN, "Try again."); declare_err!(ENOMEM, "Out of memory."); declare_err!(EACCES, "Permission denied.");
diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 05fcab6abfe6..bab2c043fc42 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -37,7 +37,7 @@ macro_rules! declare_err { declare_err!(E2BIG, "Argument list too long."); declare_err!(ENOEXEC, "Exec format error."); declare_err!(EBADF, "Bad file number."); - declare_err!(ECHILD, "Exec format error."); + declare_err!(ECHILD, "No child process."); declare_err!(EAGAIN, "Try again."); declare_err!(ENOMEM, "Out of memory."); declare_err!(EACCES, "Permission denied.");