Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3599573rwl; Sun, 9 Apr 2023 20:16:53 -0700 (PDT) X-Google-Smtp-Source: AKy350a1JL+gLSu6XZ9rTwQhLx7/h/YCzxvreoGhI0XbWLlneDp7A3FlVDQRn3sUtWDe8toea/yx X-Received: by 2002:a17:90b:164a:b0:246:af1f:62ef with SMTP id il10-20020a17090b164a00b00246af1f62efmr1664689pjb.5.1681096613178; Sun, 09 Apr 2023 20:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681096613; cv=none; d=google.com; s=arc-20160816; b=kdqP2fQBZyu3fLA327YKC3ULgx7igIYoE23axYt5ucM81d5F/esdZp/jE4kUoL4Hs8 njCXsQWNQGW9HNWHmrttDIoGKved3rrJ5oIv8kNrX6t+RNNwTjA3C8m0dGfvjoO9EmhE Y2TDMO0ooNnOuGStsVAqY0OOw65Hzr4wjh2QlGySLzccdvpwNLQjF7HIUm4WjS+CcZmc e/otpEfhLNqAlgqAkMYTxTPIu4UZmDSXTnehXt0I2NCNgZevDeIZzCoe3EIbmV2PgZlR e3wXi3vKUw4t45Ry1IRE2vyAL2CHcNbZOVyVF6pD7pvnRj0tQOsuQWg5m3XCcktLY9z3 zZ9w== 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=68hFqK4w8HaSDUtj3lg9PKOMpgnSuCAOnFcquas933k=; b=XnurDuXiEb0MHUyF+NG/P+do9KuQAPye8Hjt5B4kQ4pNjY6VFmr8wGOEGy8nMWpv5E yqrFPh7k6+0dY6hbRa0vWejUWVeEQKCJpS+g8HVgyZbl17XGxXB0n76STtf1yjG/u99U PLxD0Ixjp2t5mZwI0mB3PVnaypP6ipt6atS5xmBe+w912MT5hHkMXC0wQxrKUxvrihBh 1e5epdbE44g+yY5jdk0y3dyhak1GVstGW27XWxuXQvCmpFxlyOpJKRmTLe576ogzQyD9 RaY514TDw0LPimRW/6+EejaPgS3QWWpuGqv8i7Ij8Q0XZlkdxxzlkXf/ycDBD4aVqwKP 6XYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IjZnrt9C; 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 oo18-20020a17090b1c9200b0023d4d532a7csi10325215pjb.101.2023.04.09.20.16.40; Sun, 09 Apr 2023 20:16:53 -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=IjZnrt9C; 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 S229725AbjDJCyQ (ORCPT + 99 others); Sun, 9 Apr 2023 22:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjDJCyP (ORCPT ); Sun, 9 Apr 2023 22:54:15 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E7EE2D5F; Sun, 9 Apr 2023 19:54:14 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id q5so6248407ybk.7; Sun, 09 Apr 2023 19:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681095253; x=1683687253; 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=68hFqK4w8HaSDUtj3lg9PKOMpgnSuCAOnFcquas933k=; b=IjZnrt9C8yXtdC/ohkFj9vbfN0I5CrHdGt6RXZhkRTqVcM4PMjWP/8xUL9vbh8GGdo v454lLMWWjhwjJ+VwzO4RTWzcsPINmuMQDfY6mX3OxL3T2JUR5wc/5FIZLCPAdV2aAV1 2nqWJ6HPIB8NtV7TS3pFPZtZQnmgfufw/AHgIz6Yzu5VN/QU1pp1FvkXrmUm+DXClkya jatyStfza2n5Pf+HX832FAHLOmaxuJz5KC6QlcmgrizkjCKQByCyTfEjLGbUN1xSnDmZ lhd2umXNlbGwYnA/By0TG4KlvBR25fY1c8TeMp/RFKkT3DtALIkJ9fKFGpKgBbmgsV/c Yy7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681095253; x=1683687253; 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=68hFqK4w8HaSDUtj3lg9PKOMpgnSuCAOnFcquas933k=; b=R7OXyxqO6ZcYkIf+tB0Gyg2rQcL8GqdLzhfPX24PMaqRs2hj3H/qteQezXc5JkWWT3 kquHWDQVG3Ly0sWEzJ4PAqxQEFvpYG39Npdo5zJz/Ky8mDzkMIBJ1o+y+wz7SbmB3r1Y Ncj5UA6xSFsevd/TjjuHqcXzad8u7PGIgzBHwag6/TsIcoLnDDGyV67SanMgWlXjUQFs 7Up8eo1sZRdThjrcUbPSlBE9oQFrR1h3kVsRKPu08BVsc8vjfZPMDRz7B4zZ2QqTNSoA PwVsltxsc3DYrkIVcYaObXyayB0ZqzjGDKE1fsoyYQNAeSKOjGerYXbjPL1gXnsPVOKY iVjw== X-Gm-Message-State: AAQBX9da0WJEh9j6YI8xxg159Zpy82xxkv8fbVm4xrpbXsQt7xSqLrbK BdzeleiPQvMGpM0VAeMnpVfnkBnUxBCB8Yr1R1k= X-Received: by 2002:a25:7781:0:b0:b8e:cad0:6e57 with SMTP id s123-20020a257781000000b00b8ecad06e57mr3253999ybc.11.1681095253548; Sun, 09 Apr 2023 19:54:13 -0700 (PDT) MIME-Version: 1.0 References: <20230224-rust-new_uninit-v1-1-c951443d9e26@asahilina.net> In-Reply-To: <20230224-rust-new_uninit-v1-1-c951443d9e26@asahilina.net> From: Miguel Ojeda Date: Mon, 10 Apr 2023 04:54:02 +0200 Message-ID: Subject: Re: [PATCH] rust: Enable the new_uninit feature for kernel and driver crates To: Asahi Lina Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@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 Fri, Feb 24, 2023 at 9:10=E2=80=AFAM Asahi Lina wro= te: > > The unstable new_uninit feature enables various library APIs to create > uninitialized containers, such as `Box::assume_init()`. This is > necessary to build abstractions that directly initialize memory at the > target location, instead of doing copies through the stack. > > Will be used by the DRM scheduler abstraction in the kernel crate, and > by field-wise initialization (e.g. using `place!()` or a future > replacement macro which may itself live in `kernel`) in driver crates. > > See [1] [2] [3] for background information. > > [1] https://github.com/Rust-for-Linux/linux/issues/879 > [2] https://github.com/Rust-for-Linux/linux/issues/2 > [3] https://github.com/rust-lang/rust/issues/63291 Applied to `rust-next` (reworded to use `Link` tags). Thanks! Cheers, Miguel