Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3625007rwl; Sun, 9 Apr 2023 20:56:55 -0700 (PDT) X-Google-Smtp-Source: AKy350asTgS0hJGqc4MZwvTjC5rk7hM4mhGqWTO3Tje4hEJ/JBqu6AZuHwv50XMFBdAgDBMU6mp7 X-Received: by 2002:a05:6a20:ba95:b0:d6:c9e2:1795 with SMTP id fb21-20020a056a20ba9500b000d6c9e21795mr9969849pzb.27.1681099014936; Sun, 09 Apr 2023 20:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681099014; cv=none; d=google.com; s=arc-20160816; b=RC/tI2FUUQkgDPXG+Yc/b+Lxx9AYHglGZaZlyP6GT+h2e8qjIamgT0RV+HKTt25sLu au9C8eX8fI9sfr5AfYj0gtBQXtyFW66B0xwuZPilTduNZ2WQAdn5GNX6IuVTuLn/rHLM qXRO325lD9MRjcl2Kki3t3065jJocWMHGknqI8Ir74+1iRpzQm2q8dlFVsk7TzO+duZe AQEtA6x7IpMmkNPrrSTEgqrSm0XEHXVcXUis+a+zpIo4Y5HsERr0d/dz4IoylAnb4fl0 77FMiB6RZ76XGwF1dod9Jk7K3VtPPVMDpfk8L+htQSJzz5bB5LqTIlEw/nr9qD6LH/SE lKAA== 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=FZzELvV3936iXZzgHBjpzCyX1go0GJ69vN7WBZJ+Bv8=; b=XnoDgV6I1+YAQf4lPYKSj5wQhw6Brg+mzeFoEnCVGXIzTUOBtl4wsw69bNl/68g8BI 8ZZSk8dKBOCrM+linFrEQRy5LwJc8R+djJZ+LX7Cp3t+IxMceXAnYdY/yfkQHBh9PO4Y ybS9F99yQloPIlV6n4aHbMy+P03iig7cLXTzJVNYfHBioDbbSUrrAWEzIGp71xOvAHbF +AyF3NamBBqvI0/nXtArnodozS7yjB7yug41OexmXmfNDjK3yjScShinEH92fC4CZQkC zaAdCVgtjBSuFGVdGbO9D0uTD1mTZwoQWV8Ptji7VFNcmousm1VqrPVaQ1DM8Cs6oMqX /+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oYMStYGm; 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 h127-20020a625385000000b0062d7d3c6cadsi9838507pfb.333.2023.04.09.20.56.43; Sun, 09 Apr 2023 20:56:54 -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=20210112 header.b=oYMStYGm; 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 S229535AbjDJDuE (ORCPT + 99 others); Sun, 9 Apr 2023 23:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjDJDuD (ORCPT ); Sun, 9 Apr 2023 23:50:03 -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 707B5188; Sun, 9 Apr 2023 20:50:02 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id 72so3585454ybe.6; Sun, 09 Apr 2023 20:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681098601; x=1683690601; 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=FZzELvV3936iXZzgHBjpzCyX1go0GJ69vN7WBZJ+Bv8=; b=oYMStYGmVv3HL4vWXaCMfmE9e0uqk4VH59VWFzrCtXudhoDJbN8PmpWJi5dE1kiA3G So1YzteaHFY8FMz7Dsnt5ygflYfEST8dtNOROQMi24j/nKAinlEM+PAdmPiFPC9+Cx/7 u5q33alY9hBc6JsHCfXzq7EzWgjXS4Q0LPmUd9scNGzID9zc9RzHc4ArrTIAy2H78Ufi UB4JHaY3vsc6U9WVMCb7CXm2fn2HtlYT98pj1qhEQ7yWagEtWnqzh6hi2FquRWeh55i6 h+LD0OkWZ5iwXYjlkOs4tYJWqA9BDK45OTlRYavTOF58xSJhwV/8AvpcRRlAingIFstX ZVbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681098601; x=1683690601; 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=FZzELvV3936iXZzgHBjpzCyX1go0GJ69vN7WBZJ+Bv8=; b=ODsC3G7ILVl3Pp7tfzNln1oCOlLl0DECNWop+e/V/Xs8ZRN1k/V1sjBT0gYwbfLHrd hzV9aZpaIIKvQT2j4Mvk+kflTCLphgQhRYSDIkiXTISLD8v1iXStWboW9w/va7IUos9s 1rlh8GSbEiU7MglqWK5KvVQ+R2lwuiZe7lR1X8WGzRNF8IMmo7Sr/Udknu13PF4+cUQr CoLFG78IjETa4Qqhetv9Tdanu4mAkp55BFJ7qisuKRQnGXptpS5vHguwSn9/MZ1ZamJL 87dGjmXgElhUfTASJzbaICjhTi41lBIkiFmLxbf4hMZzMT8b/QXAtumATamV2VrBvtiM ghzA== X-Gm-Message-State: AAQBX9f8TpMTJZLNc5NLJNmfzV9/gn5o+9AUyM4cDr7il6mVws11NaSu raVBjRewl7A/2F3aGcEr3zMVj49fovOYal8TJsetCtwqBhE= X-Received: by 2002:a25:3157:0:b0:b8e:db4a:a366 with SMTP id x84-20020a253157000000b00b8edb4aa366mr3084603ybx.11.1681098601651; Sun, 09 Apr 2023 20:50:01 -0700 (PDT) MIME-Version: 1.0 References: <20230224-rust-error-v3-0-03779bddc02b@asahilina.net> In-Reply-To: <20230224-rust-error-v3-0-03779bddc02b@asahilina.net> From: Miguel Ojeda Date: Mon, 10 Apr 2023 05:49:50 +0200 Message-ID: Subject: Re: [PATCH v3 0/6] rust: error: Add missing wrappers to convert to/from kernel error codes To: Asahi Lina Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Sven Van Asbroeck , Fox Chen , Martin Rodriguez Reboredo , Andreas Hindborg , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Mon, Apr 3, 2023 at 11:48=E2=80=AFAM Asahi Lina wro= te: > > Hi everyone! > > This series is part of the set of dependencies for the drm/asahi > Apple M1/M2 GPU driver. > > It adds a bunch of missing wrappers in kernel::error, which are useful > to convert to/from kernel error codes. Since these will be used by many > abstractions coming up soon, I think it makes sense to merge them as > soon as possible instead of bundling them with the first user. Hence, > they have allow() tags to silence dead code warnings. These can be > removed as soon as the first user is in the kernel crate. > > Getting this in first allows the subsequent abstractions to be merged in > any order, so we don't have to worry about piecewise rebasing and fixing > conflicts in the Error wrappers. See [1] for a complete tree with the DRM > abstractions and all other miscellaneous work-in-progress prerequisites > rebased on top of mainline. > > Most of these have been extracted from the rust-for-linux/rust branch, > with author attribution to the first/primary author and Co-developed-by: > for everyone else who touched the code. > > Attribution changes: > - One of the patches had Miguel's old email in the tags, updated that per > his request. > - Wedson's email changed from @google.com to @gmail.com (I understand > this is the current one). > > Sven: There is one patch from you in this series, do you want to send it > yourself directly? I understand Wedson and Miguel are okay with me > sending stuff on their behalf. > > [1] https://github.com/Rust-for-Linux/linux/pull/969/commits Added (and then removed in later commits) two `#[allow(dead_code)]`s as needed to make it compile. Applied to `rust-next`. Thanks! Cheers, Miguel