Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1202884rwd; Wed, 31 May 2023 10:43:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59N8TwT7y1InPOJNFpbVd+K3UetccMCiPtbCsAS6oB1Gp7MxFNMYCSufVsymWnp/OsDqwk X-Received: by 2002:a05:6871:c106:b0:184:1e48:dfd0 with SMTP id yq6-20020a056871c10600b001841e48dfd0mr4541229oab.46.1685554984556; Wed, 31 May 2023 10:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685554984; cv=none; d=google.com; s=arc-20160816; b=wjbwqsxkZf/J5ArlBCEiqHCMaIzf3iRnklfT0UGucuZAIspmGo2SS75RLFlbSXn/kT SYVKYmJHoNxjmR2H9pyFTWkwfimj/q7lyWAGp+G/mQcIiRKlUN76sTX3U4r0rrWYcxpH SgqWunM33qOop3IjNRZ4SxJHtryTuZvInDc1qun1XLpwNBtHtCdivKBNpUFdl/xa0hzI MjV8nIkyvn8k7qknifRiBkxKjvWMv5lzIM+d8yyYhJ01sDUh0z2Fd4h/rTzWmLzSuL5c Fs7ifUPMZwZXm8sbrOSwp+EFZ8332jeWi8ktOZb9tHFFsoTz6lf1vc78xcpK0weuwt+g 9YRA== 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=ebXJVsSOUn2ugmT4rghMz7fEudpo4P8yANA/KrthHSQ=; b=lfWKIuQGO+SorJJ1MNJgcTX3O7yRLpcb1dqlhIeaNQml4fY380GjCwFRVYlZZCdKx4 MCGzUke1wFpeTXIXYCEwbRl3Oj2C/Qym5Oy3BPY+cp9GdOw6iTVNGOO/LqTtV9xllhm+ kPa5sIokWst+sejAhBGxnvaJcvJbI9cu8BKwSlOw4h5onLezxhP9pzpmkQl7Ekdi2deN vYTbjQj8nyVG8Ltx57+ROZ9zvklH/SRYXJGeUNCedGmu2cqWyqWM6Q+BnLHNhOQxHXJG bNPv17k4YFq89qGV95YsDJ20HehZubRfilSHRk9d3HU1BnPBLGgpuy+8e+DOrkQgp5n6 xboQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rWOXBBOy; 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 l132-20020a633e8a000000b00513579041bfsi1259999pga.636.2023.05.31.10.42.50; Wed, 31 May 2023 10:43:04 -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=rWOXBBOy; 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 S229952AbjEaRLs (ORCPT + 99 others); Wed, 31 May 2023 13:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjEaRLo (ORCPT ); Wed, 31 May 2023 13:11:44 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDC49191; Wed, 31 May 2023 10:11:42 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-ba81ded8d3eso8632007276.3; Wed, 31 May 2023 10:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685553102; x=1688145102; 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=ebXJVsSOUn2ugmT4rghMz7fEudpo4P8yANA/KrthHSQ=; b=rWOXBBOyOrBpuPMg0lDoyufRLZkgu0GznDnPFyWVtJFifHw7Tw6NjeMYjynx7qz/46 SbPowBCnn5Lk0cECatibpEFOHYw25O9dkF8KZTssbGCQvS2bETkGgaFsDoPaVQFCgFF8 1Ag+EMJveJF1qPYsr7gYEYsuMPnSYtYucxdk8ZEODhO03hSbn8SKM+wKE5ZTsAfKfoGz TRKvv0kCsk4cQuTvEyzYhPpwcN13N2MsgYpBhyqaUG77IHqcoPNzESguACv0Xag1z7x+ 2rNMIFLpeUGL9PyE50gUuhWvoXnhXrmkTinHm30tpSKqm/dDqJU2GcxhmqFSrmAG1rnM xVJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685553102; x=1688145102; 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=ebXJVsSOUn2ugmT4rghMz7fEudpo4P8yANA/KrthHSQ=; b=ctrcaN9uy4H6uvOlk0huAfk96bxg2hDJSy6PGEMyPHEK0BkrKWuS1AHw++3n8Xqaik wGXEfNCJ0IAPUalVjctSCXM/2cyTPOC/py2NvUO+o/pcclFaIp9Tv9dzYEkD6wxTI13Z zGNLyNdRo9RjwOxiyL6LEt03a4Uoqe9Y+HgPSG+EYYlJXjzTw+J46BAGYepTOqTN/1km yungQicd4WSU6FtW+0DduHJirWgE1k0khnY4C3Ltc4nW+3EanpJ36+zQC7NJZiZBIDG5 koW7cHgJ7r3F8+qytvm51sx8RCFzVCNNZkEVf+4kEsuspOGzAgLxlniCz5hZenU7Becw KXQw== X-Gm-Message-State: AC+VfDzY0nm+JaSN3KcfuXCcVucFK7DHQlP4I6SO3nm6bp6Rf2+Y7evm h8YHsDIRJ10tRpF1oBH8EaLKI3p/6UeZDOzR4gHYj9b4McAJTW0E6CM= X-Received: by 2002:a25:af54:0:b0:bad:13c4:3070 with SMTP id c20-20020a25af54000000b00bad13c43070mr6775546ybj.47.1685553101927; Wed, 31 May 2023 10:11:41 -0700 (PDT) MIME-Version: 1.0 References: <20230504064854.774820-1-aliceryhl@google.com> In-Reply-To: <20230504064854.774820-1-aliceryhl@google.com> From: Miguel Ojeda Date: Wed, 31 May 2023 19:11:31 +0200 Message-ID: Subject: Re: [PATCH v2] rust: error: add missing error codes 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 Thu, May 4, 2023 at 8:49=E2=80=AFAM Alice Ryhl wr= ote: > > 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 Applied to `rust-next` -- thanks everyone! Cheers, Miguel