From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from latitanza.investici.org (latitanza.investici.org [185.218.207.228]) (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 E4988481AAC; Thu, 13 Aug 2026 15:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.218.207.228 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786633301; cv=none; b=IGHhCc3ti2mu2JPk/tF/futfCloQ373C7LRYyMfj1muOPcvm8tmk0qUU6l8nfbfG5uucvAC1e7vaIoVebXK+nDyrHPMdALT3sov5vv3qLtHkU3FqqaDg0Ey3NOiHdJVjuMCITVHkz5AxZEGF6g1KYjLx61YtNqCzlmKvClzXYXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786633301; c=relaxed/simple; bh=47228c6mwrwCFoOYOFJF314LC9C5iWjAtvP7Exzj3fI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rz8QCWqWIAzEhjcjR6v9f+7FLVJdQ+S3vhE0mx4Sf2bfrYQ5/jMBr6/dJBqKpkh3Hj6pXiWfzDJJDh3J+DWabW/QK07xSUYjQROjxFuRxKQ8eibBlPny8/5r2vVFw15mOQj7ORRfH/8nzVf+TqOvSMfe29gZUlSl4gxoF2LGaQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=privacyrequired.com; spf=pass smtp.mailfrom=privacyrequired.com; dkim=pass (1024-bit key) header.d=privacyrequired.com header.i=@privacyrequired.com header.b=dScnafpQ; arc=none smtp.client-ip=185.218.207.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=privacyrequired.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=privacyrequired.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=privacyrequired.com header.i=@privacyrequired.com header.b="dScnafpQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=privacyrequired.com; s=stigmate; t=1786633295; bh=7WZnUvfYkOTTsuqH5/XMnYy/uMCnuOzvuQvHa2zGtZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dScnafpQ1xmrpna8EvZGJa4Fw29QjMbeJ1SblJt4cz8Nf4CUuBp44UXjRSjesHVTX RpVlhM8GQCG13uL2nDfQSRbxXsYZ5J1a/FeTGfGx6akaVRXfydbAspmvqKRs9SccsF SEqjfFfWNFxsDuu/4PzODYgRuFeoZ31jF2U7zfdQ= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4hLT8b41CkzGpB4; Thu, 13 Aug 2026 15:01:35 +0000 (UTC) Received: by mx3.investici.org (Postfix) id 4hLT8Z0l31zGp9V; Thu, 13 Aug 2026 15:01:34 +0000 (UTC) From: Francis Laniel To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Michal Wilczynski , Miguel Ojeda , Benno Lossin , Gary Guo , Alexandre Courbot , Boqun Feng , =?UTF-8?B?QmrDtnJu?= Roy Baron , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , linux-pwm@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, tools@kernel.org Subject: Re: [PATCH v3] rust: pwm: replace `core::mem::zeroed` with `pin_init::zeroed` Date: Thu, 13 Aug 2026 18:01:33 +0300 Message-ID: <2849575.mvXUDI8C0e@pmachine> In-Reply-To: References: <20260603160910.159307-1-laniel_francis@privacyrequired.com> Precedence: bulk X-Mailing-List: linux-kernel@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" Hi! Le mardi 11 ao=C3=BBt 2026, 08:04:49 heure d=E2=80=99=C3=A9t=C3=A9 d=E2=80= =99Europe de l=E2=80=99Est Uwe Kleine-K=C3=B6nig a =C3=A9crit : > Hello, >=20 > On Wed, Jun 03, 2026 at 07:09:09PM +0300, Francis Laniel wrote: > > All types in `bindings` implement `Zeroable` if they can, so use > > `pin_init::zeroed` instead of relying on `unsafe` code. > >=20 > > If this ends up not compiling in the future, something in bindgen or on > > the C side changed and is most likely incorrect. > >=20 > > Suggested-by: Benno Lossin > > Link: https://github.com/Rust-for-Linux/linux/issues/1189 > > Reviewed-by: Alexandre Courbot > > Acked-by: Michal Wilczynski > > Signed-off-by: Francis Laniel >=20 > Applied to >=20 > https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/f= or-next >=20 > for the 7.3 merge window. Thank you for the merge! >=20 > b4 behaved strange on that patch: >=20 > $ b4 am -s -l -t -3 20260603160910.159307-1-laniel_francis@privacyrequir= ed.com > Grabbing thread from lore.kernel.org/all/20260603160910.159307-1-laniel_= francis@privacyrequired.com/t.mbox.gz > Analyzing 2 messages in the thread > Looking for additional code-review trailers on lore.kernel.org > Analyzing 23 code-review messages > Checking attestation on all messages, may take a moment... > --- > =E2=9C=93 [PATCH v3] rust: pwm: replace `core::mem::zeroed` with `pin_= init::zeroed` > + Link: https://patch.msgid.link/20260603160910.159307-1-laniel_fran= cis@privacyrequired.com > + Signed-off-by: Uwe Kleine-K=C3=B6nig > --- > =E2=9C=93 Signed: DKIM/privacyrequired.com > --- > Total patches: 1 > --- > NOTE: some trailers ignored due to from/email mismatches: > ! Trailer: Suggested-by: Benno Lossin > Msg From: Miguel Ojeda > ! Trailer: Acked-by: Michal Wilczynski > Msg From: Miguel Ojeda > ! Trailer: Signed-off-by: Francis Laniel > Msg From: Miguel Ojeda > ! Trailer: Reviewed-by: Alexandre Courbot > Msg From: Miguel Ojeda > NOTE: Rerun with -S to apply them anyway > Preparing fake-am for v3: rust: pwm: replace `core::mem::zeroed` with `p= in_init::zeroed` > range: 2707b9df955d..81c3f2b030a1 > Preared a fake commit range for 3-way merge (2707b9df955d..81c3f2b030a1) > --- > Link: https://patch.msgid.link/20260603160910.159307-1-laniel_francis@p= rivacyrequired.com > Base: applies clean to current tree > git checkout -b v3_20260603_laniel_francis_privacyrequired_com HE= AD > git am -3 ./v3_20260603_laniel_francis_rust_pwm_replace_core_mem_= zeroed_with_pin_init_zeroed.mbx >=20 > I didn't research what went wrong there and the trailer made it into the > patch anyhow and adding -S doesn't change the patch. I added the > tools@k.o mailing list to Cc:, maybe someone there wants to debug that. >=20 > Best regards and thanks for your contribution, > Uwe >=20 Best regards,