From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 DA0903CAE74 for ; Thu, 2 Jul 2026 11:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990386; cv=none; b=nkUmMIBbwWSJDR1M7jLYisLPl+pOCQ9ryyJGrd2nHGJ6DEgyyFvKYYEl2ggD+B7Z9I96g5gYkO4tle7SH5HUTfHtdrgY977QbsK80qU05myTR3rFfoXPlMB8xRBq+yQ5GxYsU7uvsok8YlmraORuyDzcfUC6NuzMu1OWkwXk2no= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990386; c=relaxed/simple; bh=hEjKsLw6JbLkC66BSkq1CjuR6SFo/HJNCc8wlFrl71g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=PZg3ijmf2x3FN74Hvmtdg6MIln1C62cjZfbUPAGn3tC9mdhRDYE8IFUYWFrXg4qUBbBzA8S7cxmRCSLGVaAqIL5CIflZFzTyRiEB4z561IuunwDe0SccIEWRdtWSQLyecW+dd5Gmx9sTmZe/gIdWpfzNZrouUwYArZx3h4iubrg= 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=WsYGWo7Y; arc=none smtp.client-ip=209.85.128.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="WsYGWo7Y" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-493c20d0468so23720595e9.1 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=vger.kernel.org; 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=WsYGWo7YMfO3HOlZWJbUnHmXbhsxtyNnhmFcoYGkcwdtWJJ0zJi5b90tUc6986PY+Z gox5DxUJ48K1zQgq/uJsO7uGqEeNcmD1UeJbbZSIFWhJySpZAyDXeQjV1mObBjAgWurU Lj4Ki7iqBE5X7jopchBRPH1btgJVc9Ow49B8MGZuS1gLz1v8gL/5MjbWI7ZgqXKs3Mmb XEIl39MWmOngq3XgVEYPa1Kirw+n/9RZEdjrTAntBCL1/T1bP/tbKWuXIFpemLv/kI28 /7udy5LWARW4bE3ahBI7SoEmDZswnffBGiZX+L+f2FPT+QKnnp8UvZGTn4h6oNldNEPu iQ7Q== 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=FIyT4fTIwxA3lSMC4yTXEOCoISzhrfbHF8MymJzlHOOU4WpZ1zja0dQEzpo94Ci8wS 2xPjxdu5vvBkJVu5T8SYTr4VCNswwkI3+4EQi4dOS5QwBLK/zjYs7Ay/298F3jsISfaP CYznxdXZhaRc+3UekyLSRH4TwVt4ESIyIsHLqR/SpHdGKSq3HRtBBRJ1BSowsHHp/Q5z GoP5HDijtUM41SkAGM7LbmmsBR6b/jXJTT+Nr5sJFfmYxJMJle5WXfJ3AvMcb4vze381 AhO0OXOtsXPSX2E5O6kmQybm3EkxSOvm1ROatyBw9CjdpdRFdocYrSLIVXHovP3/Oi30 5QBQ== X-Forwarded-Encrypted: i=1; AFNElJ+5RdBhbgFaVVDvfgTvffgXz3cAndGl4GurpnTR/fSG0GqIL97gVjWb409+Hymou+sUyZZBs1DZTpjCaBY=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9phVDTF9jjQ+e5HB3i/18ByJ0q/UW8NWmXjt42d2B8O5lk92d ypC5Krds8A/mW/HdkJpv/WE78f3O04tXP0i5PGRAg7oZxijNXbvrXnamOrCgUIPyp+45ROlheZY usjM0ZRlbFPfFD2Z0yg== 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@vger.kernel.org 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!