From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 974E43DFC7E; Wed, 1 Apr 2026 12:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775046533; cv=none; b=ibP1Z0BQSP+uRi7qBGujGgR/rrlIRAgRZ+aJg284/jugVedrKYHWsdyw1nx/seFDuPkbm6xYE0E6xagaquJj8XcT23B2h4T3pW7Sq8tqIQhhbqwwJU1cpYiPNEICzl5+DvrNXAVaH/nRXXZNXkr9snv2rQNMaiQt2O3tk12xvjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775046533; c=relaxed/simple; bh=w4X2oTeHPwofjcCjXVHAsGKLZH0M7KYtRRJFptC0o0k=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=quNrPG41607F6oT7Tx34bZprMbxPiSCiWFiU7XgV7MDS3tUs2mw76OIKRNzo2Q5DATcCWHUIwUIdGzr/HUwCtRLo/FhDFhvyGKb4Hh76NdfrzNEn+ZpNYM8EuTM0X2FfqXTQIq5isAgBuGmIo4u2ngmcVMUr/WVhYfAOv12gpcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QoxKM2E0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QoxKM2E0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95ACFC4CEF7; Wed, 1 Apr 2026 12:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775046533; bh=w4X2oTeHPwofjcCjXVHAsGKLZH0M7KYtRRJFptC0o0k=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=QoxKM2E0FznBdrqLUroXBUcpq++H3iETgkbmtxPbXWli73gy45BOAXwReJ/pysLlZ lKricJ+MGB/je7Up+zjdR1v7MbSKYe+J8pxIsHFtRYGKQC3bNMA9MS5+08WJnT+rPL Ppgb3GqnQ6Z4U40uUKY3432VB123kqZR2ipI3hyansbPOK/WflsxTnOw3P6NtIPZXB C7nm+qDrzc9a2bt+DauoTSRBJAUYKKLtIJco/Gpp0HcTHg8dmMZTp63NzuR0FalLbT LZqlCyaZSk/UZmt3ZMGDtbvzj3qlFotttWsAtv5+RJzGW4DzcH9QKBm8deTyqcVdRT 0jKh6asjo9NUw== Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 01 Apr 2026 14:28:42 +0200 Message-Id: Subject: Re: [PATCH 11/33] rust: alloc: simplify with `NonNull::add()` now that it is stable Cc: "Nathan Chancellor" , "Nicolas Schier" , "Andreas Hindborg" , "Catalin Marinas" , "Will Deacon" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Courbot" , "David Airlie" , "Simona Vetter" , "Brendan Higgins" , "David Gow" , "Greg Kroah-Hartman" , =?utf-8?q?Arve_Hj=C3=B8nnev=C3=A5g?= , "Todd Kjos" , "Christian Brauner" , "Carlos Llamas" , "Alice Ryhl" , "Jonathan Corbet" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Trevor Gross" , , , "Lorenzo Stoakes" , "Vlastimil Babka" , "Liam R . Howlett" , "Uladzislau Rezki" , , "moderated for non-subscribers" , "Alexandre Ghiti" , , , , "Rae Moar" , , , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , , , "Shuah Khan" , To: "Miguel Ojeda" From: "Danilo Krummrich" References: <20260401114540.30108-1-ojeda@kernel.org> <20260401114540.30108-12-ojeda@kernel.org> In-Reply-To: <20260401114540.30108-12-ojeda@kernel.org> On Wed Apr 1, 2026 at 1:45 PM CEST, Miguel Ojeda wrote: > Currently we need to go through raw pointers and then re-create the > `NonNull` from the result of offsetting the raw pointer. > > Thus, now that we bump the Rust minimum version, simplify using > `NonNull::add()` and clean the TODO note. > > Signed-off-by: Miguel Ojeda Acked-by: Danilo Krummrich