Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1355417rdh; Fri, 27 Oct 2023 11:35:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUillwelI3YRpWUKN2UKSdmcv2uEOrOhmOf1ItuDhge3Qp4I/j9JCEVrwoCCyxq6O7+osH X-Received: by 2002:a81:e608:0:b0:5a7:bc66:949f with SMTP id u8-20020a81e608000000b005a7bc66949fmr3417400ywl.26.1698431736310; Fri, 27 Oct 2023 11:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698431736; cv=none; d=google.com; s=arc-20160816; b=P8kunocDaTNr8bllVjlaFWCJ9j9K0wrtO7fk8N7fIJQrPR0QYR1+pogynCykUs7kJE ZfCXuyZbx4N16jADiZNY6lI+wZWtNcj8XbLtkhwYWVxx78MhzOQBbnPfNWm4DD3/DbJI rk5R9CrAGEgQSP7y3or4MXWi1++dT0gky4O49dUhNvJE21wsRplDHLczrBpOZLzLlD9u oWV6xk8uV4J8GjtSARjwtJQ4su65L5ZV/CF77yzDtc64h9nnOZVWU0/WLz0rh0lnpX5t rISbcG8oUKPbtv2kk0AtSg3pxt8LfqTP1Z9d2VluEXPv/h9ggoY+0ZV04gyDq1chgPWB l6/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pJ6R5myG8rNTm8Wf8WNBtfDSDzlMYFxaWYBL9mrdwnc=; fh=hevvz3SjA01ZtPFHwdeL5M4ia8ooYKb7Iq6mLmatHzE=; b=ANeQDePMXXckv57XtTxXks5CEkjXxsfqAN/LYgs+6gmShjfr2ezRfBF4jzZK2fduag iex4DGoZ+hps8RGCD1EQHtfxIixgys6YPP6B/EYFNtHCK5zOmaVKFTCVSSMyhEx2MHoj 02Q3OWM8u0/8h9RZ4OT64Nmgd4eDO4BJI9ma+fplL4NXRWlFW0yXNpAIUyw1z6gh64vG WJtPByA0DCtBI7lZHinycYsv6gWgauhMzugLOvyecSZ3q0Z4K/j4Z9TIMvWCbSlPzr6i TRbsvZF5USR+U5KlaQuXQaA2Edid8Tgktiv4UolV7CvC8+v+K6613Bc29Abx7PbBvgFh mcZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kfUqJMqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n14-20020a819c4e000000b005a81a489448si3474973ywa.267.2023.10.27.11.35.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 11:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kfUqJMqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DE6C28258FFF; Fri, 27 Oct 2023 11:35:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346223AbjJ0SfR (ORCPT + 99 others); Fri, 27 Oct 2023 14:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235268AbjJ0SfG (ORCPT ); Fri, 27 Oct 2023 14:35:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF0684799 for ; Fri, 27 Oct 2023 11:32:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6599FC433CB; Fri, 27 Oct 2023 18:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698431179; bh=zTfUXlXSoGJJFGgemXJajvcwNKocWCwDSQ1KIMapG5g=; h=From:To:Cc:Subject:Date:From; b=kfUqJMqzVMz/dZnpAeMnaANP+ztmmMDvyprnku1xiWzPOboEvgrViK/AZ8z6AkxTE GBfVVpy05IFjBnBHKvuQmL+Y8uJAusszq/HuY2p6pqfkBvS1S4uuchlkbM8P2X3z+F boi56GEWZfX7x4dbIlm/VemNzohp4GYtOOlF03yX+v4cx0ZSV95HuYtOf3C6f1kFKp UvOB9mDDYj1PTTUuMTiRky2EUigGHcRQV9mVG4rEXl2PB3RU3I2b64cn4yYxGLMODV TYyLSOfC+gxG7T0OjqaTxaV5co+63Qt/UGoLwM6UpJd7fTlKd+jF3gSUTxcIw1xlX0 XH5nv6QlkzJTw== From: Miguel Ojeda To: Linus Torvalds Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Rust for 6.7 Date: Fri, 27 Oct 2023 20:25:58 +0200 Message-ID: <20231027182558.199011-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 11:35:31 -0700 (PDT) Hi Linus, This is the next round of the Rust support. The majority of the commits have been in linux-next for 10+ days. The younger ones have been there for 3 rounds now. No conflicts expected. No changes to the C side. There are also some Rust workqueue abstractions which you will likely get through the wq tree. No conflicts expected with those either, and tests pass with those merged too. Please pull for v6.7 -- thanks! Cheers, Miguel The following changes since commit 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa: Linux 6.6-rc4 (2023-10-01 14:15:13 -0700) are available in the Git repository at: https://github.com/Rust-for-Linux/linux.git tags/rust-6.7 for you to fetch changes up to 3857af38e57a80b15b994e19d1f4301cac796481: docs: rust: add "The Rust experiment" section (2023-10-25 03:14:00 +0200) ---------------------------------------------------------------- Rust changes for v6.7 A small one compared to the previous one in terms of features. In terms of lines, as usual, the 'alloc' version upgrade accounts for most of them. Toolchain and infrastructure: - Upgrade to Rust 1.73.0. This time around, due to how the kernel and Rust schedules have aligned, there are two upgrades in fact. They contain the fixes for a few issues we reported to the Rust project. In addition, a few cleanups indicated by the upgraded compiler or possible thanks to it. For instance, the compiler now detects redundant explicit links. - A couple changes to the Rust 'Makefile' so that it can be used with toybox tools, allowing Rust to be used in the Android kernel build. x86: - Enable IBT if enabled in C. Documentation: - Add "The Rust experiment" section to the Rust index page. MAINTAINERS - Add Maintainer Entry Profile field ('P:'). - Update our 'W:' field to point to the webpage we have been building this year. ---------------------------------------------------------------- Gary Guo (1): rust: kernel: remove `#[allow(clippy::new_ret_no_self)]` Matthew Maurer (3): rust: Use awk instead of recent xargs rust: Use grep -Ev rather than relying on GNU grep x86: Enable IBT in Rust if enabled in C Miguel Ojeda (8): rust: arc: add explicit `drop()` around `Box::from_raw()` rust: upgrade to Rust 1.72.1 MAINTAINERS: update Rust webpage MAINTAINERS: add Maintainer Entry Profile field for Rust rust: task: remove redundant explicit link rust: print: use explicit link in documentation rust: upgrade to Rust 1.73.0 docs: rust: add "The Rust experiment" section Documentation/process/changes.rst | 2 +- Documentation/rust/index.rst | 19 ++++ MAINTAINERS | 3 +- arch/x86/Makefile | 1 + rust/Makefile | 8 +- rust/alloc/alloc.rs | 21 ---- rust/alloc/boxed.rs | 56 +++++++---- rust/alloc/lib.rs | 13 +-- rust/alloc/raw_vec.rs | 30 ++++-- rust/alloc/vec/drain_filter.rs | 199 -------------------------------------- rust/alloc/vec/extract_if.rs | 115 ++++++++++++++++++++++ rust/alloc/vec/mod.rs | 110 ++++++++++----------- rust/alloc/vec/spec_extend.rs | 8 +- rust/compiler_builtins.rs | 1 + rust/kernel/init.rs | 20 ++-- rust/kernel/print.rs | 1 + rust/kernel/sync/arc.rs | 2 +- rust/kernel/sync/condvar.rs | 1 - rust/kernel/sync/lock.rs | 1 - rust/kernel/task.rs | 2 +- scripts/min-tool-version.sh | 2 +- 21 files changed, 279 insertions(+), 336 deletions(-) delete mode 100644 rust/alloc/vec/drain_filter.rs create mode 100644 rust/alloc/vec/extract_if.rs