Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2362627rdb; Mon, 5 Feb 2024 04:29:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFb+hRqX+boT5Pdje93xeZiU+qwCmHpZ0QlHP3TKF6kFSRp5pv+yipFqq0JrqIs0u7o4nfO X-Received: by 2002:a17:907:2da6:b0:a35:6a61:e3dc with SMTP id gt38-20020a1709072da600b00a356a61e3dcmr8260785ejc.16.1707136152949; Mon, 05 Feb 2024 04:29:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707136152; cv=pass; d=google.com; s=arc-20160816; b=cpWNPDpMPPfB7NHWj4LH1BEewa+NhzF8BEUrcK8FFUkhKMsfKFW4J6+HNusi8e1CDn s4BbUsxcxtPJDT55zCNqjQP3yVs9lMbt/mEdclPnmjjtTwsUfe5jFGnfa63+55dKguWV QA3DykfJim3kMOB+o76kZe/MdWnqd9WYExxcisBUJextoiPI/PUNJoHpy5uWxnS5vk0T SottU4RzsNM+WjUqMT3ICOg982+swnDeI5LOqgFt66io0jZ2s2fwQf8Sd6XPhje//6LF uUHcX2xosfmZH+DF88iwuqIUsQnD2YYCmSnGOedKR/pBSRJoEg9DtPOsIMYd6S3SHvax qiWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=zMhlP+q1kZ1xhMQog/NNGaxk6WwJDjlG0eyf33U/c/E=; fh=7u6oL+0mpv/UPp/LaXW1hOvrD6Z26sYfRht4i0cLjmk=; b=sZHPxWPFR/ECQnmH0Xxnht81Qzd6+yClK+rM5g7kipKOBYr0o8ZW6cHEa7Xj1B8RFl N8LKjdsSoX7/2fwffnOHgz2Fdm2JY8mS3sWy9NSMNY2Ir3gDr+wivhr+SJSQpHZTsKL6 H1/8WXz9Y0ECYIoddaBX2BTgdZpRgIyg29Q0syN2kAq7dqc0mbbEPioNnHktDgoNeOXI +gkXKtb8GDDzapRox+JjQ7S7akCLCl26BM5g3Vn5oNe0q/SWyWYTg2HuXoRQIXmQKOzh izlSIzcXmpBRpNMqCTa4CHk0yCBum09zziCH5r3CDXqmJqdYNcXnOgLOsQGP+o9kJBqa 6e5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=Lp0NO2ad; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-52593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me X-Forwarded-Encrypted: i=1; AJvYcCVOlyTUtUZrFDZ/5Zbrxjr/h+UPEAC59pnqTLnpEeJeXvNikHRwKoaJsI4CUjXMscVJX/DL3+KB0Q59+yb/61i5faSAIpQ1Uv5sVPIi5w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b11-20020a170906038b00b00a37a53f0259si1398646eja.778.2024.02.05.04.29.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 04:29:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=Lp0NO2ad; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-52593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7975C1F23899 for ; Mon, 5 Feb 2024 12:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAC681BC3D; Mon, 5 Feb 2024 12:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="Lp0NO2ad" Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DA821BC2C; Mon, 5 Feb 2024 12:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707135982; cv=none; b=hMiCMd525cWq4x6ThRZ96a1t8GHCDx3ruraanpQ20/9nB639nkwqfK/+sF4qMDhhb5UChWQ+FgW5igxpUAZtYwHmdxjs7P9SLXqx1YmakTG1n0sWtpAHfnzRQRipqrxwP9lSvedKYiw4GIVSqnSzVi+06AX7eMvOOVR737DdiCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707135982; c=relaxed/simple; bh=/xDr2MMgZ1sU+0+C1G8hOoShIrpAzIc2K1W6rt3nwiQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gQIx30xJei0xs4mejv4zvzxIMjRmkUKn2J2xSzdlBWC7BLWBU6cex2zMT/JmAw1JBgdN9TzcBdDraAgnL42mdEL9GOxhq99py4D/Q0p9FDhEC7a53mV3oBTrMRi3UpENY2fZUiHgn3yKYJQDZR/FhEjA9bW2X6sXWEIsQhz+avw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=Lp0NO2ad; arc=none smtp.client-ip=185.70.40.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1707135978; x=1707395178; bh=zMhlP+q1kZ1xhMQog/NNGaxk6WwJDjlG0eyf33U/c/E=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Lp0NO2ad2V/bWFKm3w+78eiB50SUqsZZzmvW3DGIJBCy0Ra5ThkKxPW3FTQo0D3Ev 9kW9s6GPvyReAOjQtBuPFv0+0TbdyVXEwYhAfpPpWy4H4H6Vb4y+hpCSXZsBGCNYkG 80j7GfsFXjTOzu4lmbODDLEvFPGpIQBIj5jaS1sqh7PdzR3QKHDxfjM6MaYvZfvJD8 KQzJkc1pvC+iu7F6GQASp4hzgxAyC4XrH0jgffzsTdEM7HhaXt3qsgWtSAua9oLm/+ UzZ4mXaj+R6lOi/Z6TfD+Gfuhzpsczg2hOH1RtOTE1FGS+KOU9ugY64aBDPF7AkpRU SPRnxxoW0PE4A== Date: Mon, 05 Feb 2024 12:25:58 +0000 To: Alice Ryhl , Miguel Ojeda From: Benno Lossin Cc: Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rust: stop using ptr_metadata feature Message-ID: In-Reply-To: <20240205091842.2858516-1-aliceryhl@google.com> References: <20240205091842.2858516-1-aliceryhl@google.com> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/5/24 10:18, Alice Ryhl wrote: > The `byte_sub` method was stabilized in Rust 1.75.0. By using that > method, we no longer need the unstable `ptr_metadata` feature for > implementing `Arc::from_raw`. >=20 > This brings us one step closer towards not using unstable compiler > features. >=20 > Signed-off-by: Alice Ryhl > --- > This patch is based on rust-next because it depends on the patch [1] > that upgrades to Rust 1.75.0. >=20 > [1]: https://lore.kernel.org/all/20231224172128.271447-1-ojeda@kernel.org= / >=20 > rust/kernel/lib.rs | 1 - > rust/kernel/sync/arc.rs | 10 ++++------ > 2 files changed, 4 insertions(+), 7 deletions(-) Good to see this! Reviewed-by: Benno Lossin -- Cheers, Benno