From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D535E3C9EC2 for ; Thu, 2 Jul 2026 11:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990387; cv=none; b=E6HW4doUyE83qbSQ/2vk4bi5YsF14SJQvOZeiGnJ7A27ylJbfY2a33dHyv7TYd12vt9y3EUpgVnBzy8nFsby9IoTXU4enzaPHazcXW3e6xid6PjXwKJDlDfyBmwch3KjumqWmaAsYHRjy6jyjnWPSWNlXzvob7byONBJIUnUBOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990387; c=relaxed/simple; bh=hEjKsLw6JbLkC66BSkq1CjuR6SFo/HJNCc8wlFrl71g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=a9Ec0ew1P1QicrNAIiWQpmZ+db1cqZDL4Ana254eeQ9Iuzl+rHnrTu87fF5rMKsszJGb8jiuZaK0ijxqnI8sDyNaqw6jFNSI76pmtmQjXRQQSAEw3vnEHnKvmFeY+7Ein1ekORgvFZw4cPeSG5vX7fM4b2Xhtj3kWidXFAPTRs0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=T1IpeGV0; arc=none smtp.client-ip=209.85.221.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="T1IpeGV0" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-4731a357b0aso1689252f8f.2 for ; Thu, 02 Jul 2026 04:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782990383; x=1783595183; darn=lists.linux.dev; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=hEjKsLw6JbLkC66BSkq1CjuR6SFo/HJNCc8wlFrl71g=; b=T1IpeGV0ZonrH2krw6LFk51tZVy2v42a1o4yxihdTwORlrx7zwohCqd6kjdPdYyP9I dAU9HC3pOUKlrlCHGJD+Z7McArU2AuN6U0u978suU+SdRGWe1Q0nFixPdbzpsMrNcxIf Xr75FAL0gx1GO1Qb9PQFM6lpw0kpQEdkowMbI6cK4LW4QZkm1gLzXw89XLsXQWdF+HXC cTKBC5WvQsWAKXXvb/4PPeva0EYymVmRbCW9syZl/ibpHhuZDUkOmuNKr1XuQw5gOmFr DGy7dI1xlcwJlhZO/ElpkQNGNLGegsANyOjY6pL9p0JyGKLXjvtxqhDE8ccTBziI4pj+ lD6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782990383; x=1783595183; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hEjKsLw6JbLkC66BSkq1CjuR6SFo/HJNCc8wlFrl71g=; b=ZiwT3Qcr3ZKljreewdRUYYPhTmmcG8T3hOwZLLLaMOcYAp5DBGinjkNFvvMn/4SX7e 0SbLjIL5Ixp2oNdH9PC03pAZZ9TxRLwbWezfby2wty7ten7L14tdU/6Av923GGRx1POh mHz9VTF0z1vRKMZsEEeCnDHY5YyCNjJieLd2Nu6GUdWeF4eyQp5cZORvzAv4YvLsgg66 UQkRP3wkCiCXI+5LFTvBoLpBUQGxZ7CPlCO4UjpooPdWCFCmVY74DgfRFG0eMhQhNjPg Iw0ho0722PWkHeChFAvDa+GUX5J+Tb/T1QdnJufrbV1oO4Oq0N7VFRjue2onUwimVJeW rBLw== X-Forwarded-Encrypted: i=1; AFNElJ9GZ7iNe4kV/Cay3WgkRdXllIi3jwddTD+FhBd6P8VJE02Qy+jRDGtgiBI3Ap59nxSyLOX57owVLGj3x/osWiZEBUtoBQ==@lists.linux.dev X-Gm-Message-State: AOJu0YxsGoS7SmB19Hgb2vaH0BZ1+EHlTVUekFSaZIEdaZtbT+oS76OU Dzwx6V3t8GfhvcVxoEa5FRu4wby3YJlayQxRfMjLIGZspsyzYanDSig9vFljjUM12p41sZcn5Ha 3fhZXCJTxkF145E6QLg== X-Received: from wmsm38.prod.google.com ([2002:a05:600c:3b26:b0:492:49e7:fff3]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:26d2:b0:490:9782:3eb8 with SMTP id 5b1f17b1804b1-493c3cedeb1mr40482955e9.25.1782990383098; Thu, 02 Jul 2026 04:06:23 -0700 (PDT) Date: Thu, 2 Jul 2026 11:06:21 +0000 In-Reply-To: <20260629201046.423464-1-nico.antinori.7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel-mentees@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260629201046.423464-1-nico.antinori.7@gmail.com> Message-ID: Subject: Re: [PATCH v2] rust: iommu: replace core::mem::zeroed with Zeroable::zeroed From: Alice Ryhl To: "=?utf-8?Q?Nicol=C3=A1s?= Antinori" Cc: Joerg Roedel , Will Deacon , Alexandre Courbot , Andreas Hindborg , Benno Lossin , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Boqun Feng , Daniel Almeida , Danilo Krummrich , Gary Guo , Miguel Ojeda , "Onur =?utf-8?B?w5Z6a2Fu?=" , Robin Murphy , Shuah Khan , Tamir Duberstein , Trevor Gross , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, iommu@lists.linux.dev, linux-kernel-mentees@lists.linux.dev Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 29, 2026 at 05:10:41PM -0300, Nicol=C3=A1s Antinori wrote: > All types in `bindings` implement `Zeroable` if they can. This enables > using `Zeroable::zeroed` for `io_pgtable_cfg` initialization instead > of relying on `..unsafe { core::mem::zeroed() }`. >=20 > This change improves readability and removes an unnecessary unsafe > block. >=20 > Link: https://github.com/Rust-for-Linux/linux/issues/1189 > Suggested-by: Benno Lossin > Signed-off-by: Nicol=C3=A1s Antinori Reviewed-by: Alice Ryhl Joerg, is this cleanup you can pick up? Thanks!