Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp565730rwr; Wed, 3 May 2023 03:00:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xBbhE/be5tbC70TxHNop1+1+eJaHLd561l+snV3roS3RKbql/CQKav9xRiaC49TwxtAcG X-Received: by 2002:a05:6a00:24d3:b0:643:4d69:efe0 with SMTP id d19-20020a056a0024d300b006434d69efe0mr961314pfv.4.1683108023698; Wed, 03 May 2023 03:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683108023; cv=none; d=google.com; s=arc-20160816; b=tYTXZOLBM5qMfDlaW7JJVPA1NOltRjuiPdRoT/Kr+UFfUA5Y+2+zRsvTnk1kJDrme8 +KiGVDfVj3R3zj8VKwl2QSZnd3o4WRdXQqkDujaSefkLaMBpQq1xVKK879QYX6Y9iEe6 n8IKdXErdJwh1/ppXZPF3Pg38E3lkU82xNa7L+HFDuLvytbpWqSHVYJneZDwubTWSmt9 ht6n81sM+BVexdAssHP8lfamfQi6sBCO5+ehzje8iIGFl7E7l8qasmV8BOfYles2puky uc7zST3MBiKJcjq6l2ZaIKzs0NSZufVsE7tvPv4upyEa9i0R21bCF0SlIZZl0oN0MwZZ HG0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QekGgvtyEzq9qE+03olGY6PTWKf2S/rVt9efjf9645c=; b=h+A1hEEOpOgyF3rt7+5Lzj1+IQxZ5HIrwyjboNPcdDMyHMrcKHcID7UWxgZJ+M9KPb JhXCyue7JWA82uk/khkZ+zPOmc3lJHKQLX21Zr3GuoTpfCvuo0fYcZZjxUwe4D5vFrhj wWKkGMPR4NT9YSmDv2m66oynVYP6aYXcU9/onc13ABeO3rbHEqzsOQTjH58jh3dTln1e ++iX6VxQ1KdQdolvxG7jpvZ0e4kPaUmaVSLj3tCWR9zulxdfgdqrbt31AsWmHACC/Heg tLzy1BtKG0srrLxC2YnvO8ajPs0GlsDNxjbmZUSeVPbTMaYretK4UL7w68fLt6HB1+tC wbXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WsTIAv3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d69-20020a621d48000000b0063b7bc5f3a8si32527055pfd.86.2023.05.03.03.00.09; Wed, 03 May 2023 03:00:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WsTIAv3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbjECJvx (ORCPT + 99 others); Wed, 3 May 2023 05:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjECJvO (ORCPT ); Wed, 3 May 2023 05:51:14 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E273459C4; Wed, 3 May 2023 02:50:21 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-b980e16b27bso4089591276.2; Wed, 03 May 2023 02:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683107415; x=1685699415; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QekGgvtyEzq9qE+03olGY6PTWKf2S/rVt9efjf9645c=; b=WsTIAv3bpWOgkPRuIYqZmMp394vBVAZM3e+78YksbATEi6TYx4ncIdBp2gkiI/Dn0J g7ixO5LtBI9/wl5AveftdXS3FFfJUZlG3ZPDUWRNTZAUco1T6IOhftsb8O0Phf4PLbgA jjf5T5P5bnKzXbDMgnMcT4iAIUWEgY1idOvKAvnRH1hH5Nk7wVFwUM0XfSA8zkPzm0hj Pd29/tulY9tynfFbxQonA2XD6aZuFBLLAdm/7o8xG73OCngG2GFgpQHlD/jTeRh8ubpE LLUQpwqrePx3HWMl53EnRxveDxItayIq9LHi4Sr89Rf/E5mZnk6YjVILEsbRFG1gxqGy tLGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683107415; x=1685699415; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QekGgvtyEzq9qE+03olGY6PTWKf2S/rVt9efjf9645c=; b=Mv7i7cD6wz3/2RaFL0gzErchwgTDh6M7uDzJn6rETH7Ju/hP9l4ZfAn7RWdwdhQLLG MMX1FCaPJPq2dTEDHA+rY8nzsjtDMlpObjvft8gGzTEiDOJaZjmG0z5KjGWe141Q9K1F oCER1oCZ8HWYFnMODX/0yTDfco6kUPnely9WTJiKk1mi9UyQxdkqw6lz4nzdQki4H73g Umthfu5admlMyXAyxv9tJ/A9h8FLgozpJh2iVtU7WAu2hlfPidKWeLr5uQX5bTqFj90d Hnx3uuSjQX+bmsLxMO31Bnj1A/fWrXCByWQP/tSIsR/+p4ZzrdkOytfkWd/bL/2X31IB RhZw== X-Gm-Message-State: AC+VfDwJ0miSGO5EDJcudYciJBEmn6OkpUC/rlD9wpljmowXaqWgYEax cWX00X66RR8eJZSfaRJlKCd1zGpXYm8OA6aCx1A= X-Received: by 2002:a05:6902:723:b0:b99:8359:b485 with SMTP id l3-20020a056902072300b00b998359b485mr22675047ybt.18.1683107415347; Wed, 03 May 2023 02:50:15 -0700 (PDT) MIME-Version: 1.0 References: <20230503083941.499090-1-aliceryhl@google.com> In-Reply-To: <20230503083941.499090-1-aliceryhl@google.com> From: Miguel Ojeda Date: Wed, 3 May 2023 11:50:04 +0200 Message-ID: Subject: Re: [PATCH v1] rust: error: add ERESTARTSYS error code To: Alice Ryhl Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 3, 2023 at 10:40=E2=80=AFAM Alice Ryhl w= rote: > > This error code was probably excluded here originally because it never > actually reaches user programs when a syscall returns it. However, from The reason is that commit 266def2a0f5b ("rust: error: add codes from `errno-base.h`") only introduced the ones from `include/uapi/asm-generic/errno-base.h`, but not the ones from `include/linux/errno.h` (or `include/uapi/asm-generic/errno.h`). Given this is an independent patch, should we introduce the rest too, at on= ce? Cheers, Miguel