Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp477071rwr; Thu, 4 May 2023 05:59:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XWXvraz44KDI5x+2gD/xw5c9a/v/4yooqxIjUqJIHJIlUUIc6IFvzvHqPMvzM2cqVeMGz X-Received: by 2002:a17:902:b70f:b0:1aa:e0e4:eca with SMTP id d15-20020a170902b70f00b001aae0e40ecamr3153065pls.18.1683205148508; Thu, 04 May 2023 05:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683205148; cv=none; d=google.com; s=arc-20160816; b=RtegM+OFE/j1N9AGo6u6H1PPjU1FYn0d5nWtwXFSRyZmUaFYolM9AZdyQga/4ct4qb wkELKxnzbTnYqYfD/RtXN2/wiCDz9NIcdHeb+GbvYqzOaT2vcDUueE+xL3HOLIEbpvoN t5zx5rCFoXv0O+ao/Vs85ilQUI3sjOnFt+IZY6X7HIHwcQfq/tzINzRRL8stU/Q/1g7K 9y1lkJL3Fuz6bpkfCkh2SkKyO6MyPyiWq8oI6whJvi23+AqikqtfWnF6c3+7FGKB33MQ OLHQ7QI7JMscVL7jAoYMYa4U8K+PQoQm73/G4aPKTASDMLJcLtKa2/LcLHqyj+ee2SbV FnyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=35PE1h4pn1H3d9SWO+8b0I5Y/uShSGFf9sil//g3S48=; b=gHxlJ0Cpomz3EeOBur7MhZ6U/ZlLxTNBbtdvZ4yCxiTCcIwpfsx9NoG6///m4+zhTo M6bVpmTypKBo20Bsda/1uCsWWmT9Iwe9hyocVSOBind0R3LkWVNSDiqTcQqqumuJ2Uq/ 9+mqjXyeSL3bGJCKD/MpTEaYy5d6dn7gYix+Q1sBI+PbqRCpDtl3krkEEhRelmZf+vOU XiBl6rbLkoGYhkSs9XW0H2h97LnSCGmoYCzLjgylDXwa0RLsm8MRCBCcwF7jXo3vBHLC hrN2+sFRCcW9qV2eIBh1xtHfBpO8JRUamaK3SVqlPS61QVn/8E5P34TBRnqAvtepUyGx YgRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HO2Mrqz6; 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 d4-20020a170902654400b001a6919158cbsi32395395pln.167.2023.05.04.05.58.53; Thu, 04 May 2023 05:59:08 -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=HO2Mrqz6; 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 S230242AbjEDMki (ORCPT + 99 others); Thu, 4 May 2023 08:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbjEDMkh (ORCPT ); Thu, 4 May 2023 08:40:37 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA376194; Thu, 4 May 2023 05:40:35 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-549f0b45ac6so134745eaf.0; Thu, 04 May 2023 05:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683204034; x=1685796034; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=35PE1h4pn1H3d9SWO+8b0I5Y/uShSGFf9sil//g3S48=; b=HO2Mrqz66zmORlnliP7P/qqLTd7aBsXSFdRsEd9qam/1QTKL+5Id65vN4S/svCm6HN m/sycne3kjRoy0ScrIFGrqQ9yZWnVrhTBan7e2BBuxcbMzvOTNs6evdO4v8Vo13l55yp FTVtKuNsUCvRJnzEO3IlicLkpcaIwe72FlKVTKDf8K/m4RmVC2te5AXXGjA4xQFeqCud TVNUf6KFcWQ9lQ73h2ZGriwNXQOTVAT4VXU5jnXRirUldThOvLuVzUu/CQXkUuYRCG3U vQtGHcoZw0VfILZjwBt1J3sf8/ZBYK3nyc/Fps6iX1X6V3pWQkPiRyejNlzZhTwdD8le KLkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683204034; x=1685796034; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=35PE1h4pn1H3d9SWO+8b0I5Y/uShSGFf9sil//g3S48=; b=L7b7qJm1Ym1MTP6S6qOlDyKShn94zkOYLDcUoQwR/qp+3WyP+K+7gikqXjOccz0pN+ afN6V04ZqPdHT1xpwq9AO4cs0Z4PZ30jTo1CaVM11CdhyB7GrZaAg11hwwjzOLl1MQzo nRamRMdOXRQHBqWZ0pfoEQEeETrHbk34IX82bD6mQH9ZzH9wNgiHsbugJHfrLfJZ3YkJ AXnWyUuQdqShx1aBeLeFojLiFT4kGA9hUA6V1+lXA4PlHvar4/LO/2nEDytpLqS8DIUp ow7KD8BjWZZ1QhBuTzP7EjDFwbwO+8Y34EZTwH8LhaO5KJtE2Ee2Z5wl5BanaaXTsf+/ 33hQ== X-Gm-Message-State: AC+VfDyv95e2lAEsgmGuF5QFhBsuRyLnFlxsrrXBAD5odKR6rYWezUVs YngcLjjyB1OgAeXTi9mLNEo= X-Received: by 2002:a05:6808:23c1:b0:389:4c8c:d069 with SMTP id bq1-20020a05680823c100b003894c8cd069mr1589556oib.57.1683204034303; Thu, 04 May 2023 05:40:34 -0700 (PDT) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id k12-20020a05680808cc00b0038dd5bf922bsm1540620oij.22.2023.05.04.05.40.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 05:40:33 -0700 (PDT) Message-ID: Date: Thu, 4 May 2023 09:40:30 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2] rust: error: add missing error codes To: Alice Ryhl , Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor Cc: 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 References: <20230504064854.774820-1-aliceryhl@google.com> Content-Language: en-US From: Martin Rodriguez Reboredo In-Reply-To: <20230504064854.774820-1-aliceryhl@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 5/4/23 03:48, Alice Ryhl wrote: > This adds the error codes from `include/linux/errno.h` to the list of > Rust error constants. These errors were not included originally, because > they are not supposed to be visible from userspace. However, they are > still a perfectly valid error to use when writing a kernel driver. For > example, you might want to return ERESTARTSYS if you receive a signal > during a call to `schedule`. > > This patch inserts an annotation to skip rustfmt on the list of error > codes. Without it, three of the error codes are split over several > lines, which looks terribly inconsistent. > > Signed-off-by: Alice Ryhl > --- > rust/kernel/error.rs | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > [...] Reviewed-by: Martin Rodriguez Reboredo