From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 039BAC71136 for ; Thu, 12 Jun 2025 19:47:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ES0AMk0wkXmaqMy9pIGghKd77rIPki0K7cABoa+Z/Lw=; b=0YmQRWB6r7SfKV9oc2eSrBnUtM /dhYY1YFzLQfuqyoMlzHOGbWlkPhoLztcqyzKYLWhRTF+kMP7qDWqwFt44JQZZfbNORh2YmOboSE7 Zi7v/ZW0xMK4HVe5dWCdjXWeiPIN96sTxh/O68wJxujb5IcEChH40Qvqk+MAZTCuKE2CoQxOONUOB aIN7EAL+dy7+dm87zlDkvCsHLFdqw2NYZrlmu2XrjRXY8LY/P8FY2/w6ueZBhGfCQ6mWnqxd27riQ m4/btqZ+SKzgnP6vImG6xutv3NiH7wNUWt/0BjVxdSIGOeF48HJ1gH0Sd23ZvapoKubpkpfADcVwv LmUULHzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPntr-0000000EODF-3WPG; Thu, 12 Jun 2025 19:47:48 +0000 Received: from jabberwock.ucw.cz ([46.255.230.98]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPn41-0000000E9fO-0Tb3; Thu, 12 Jun 2025 18:54:14 +0000 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0D12D1C00B7; Thu, 12 Jun 2025 20:54:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1749754448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ES0AMk0wkXmaqMy9pIGghKd77rIPki0K7cABoa+Z/Lw=; b=bEFAWNrqxiDB3hTLYkNNin93KGymmobI30NxboUjySkMZZbQ1tDkw60ZqsrwZWSPzNXRLT 19enMfhHWWz0Q5ewQBDGlyH0l4C9Yl59JXD+rK7DCySYJz3mn+lT8d5y3fwG56k5w4oziS 988hpv7ySCcn9jbXEUW0jKpc8UQ+ntg= Date: Thu, 12 Jun 2025 20:54:07 +0200 From: Pavel Machek To: Nicolas Frattaroli Cc: David Lechner , linux-rockchip@lists.infradead.org, Michael Hennerich , Lars-Peter Clausen , Jonathan Cameron , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Matthias Brugger , AngeloGioacchino Del Regno , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Francesco Dolcini , =?iso-8859-1?Q?Jo=E3o_Paulo_Gon=E7alves?= , Leonard =?iso-8859-1?Q?G=F6hrs?= , kernel@pengutronix.de, Oleksij Rempel , Roan van Dijk , Tomasz Duszynski , Jacopo Mondi , Jean-Baptiste Maneyrol , Mudit Sharma , Javier Carrasco , =?utf-8?Q?Ond=C5=99ej?= Jirman , Andreas Klinger , Petre Rodan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 00/28] iio: zero init stack with { } instead of memset() Message-ID: References: <20250611-iio-zero-init-stack-with-instead-of-memset-v1-0-ebb2d0a24302@baylibre.com> <2243943.irdbgypaU6@workhorse> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qHcR0wTfGJLS0CPf" Content-Disposition: inline In-Reply-To: <2243943.irdbgypaU6@workhorse> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250612_115413_613160_985251F2 X-CRM114-Status: GOOD ( 20.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --qHcR0wTfGJLS0CPf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi1 > I thought I'd chime in as someone uninvolved because this seemed > interesting. >=20 > On Thursday, 12 June 2025 11:17:52 Central European Summer Time Pavel Mac= hek wrote: > > Hi! > >=20 > > > Jonathan mentioned recently that he would like to get away from using > > > memset() to zero-initialize stack memory in the IIO subsystem. And we > > > have it on good authority that initializing a struct or array with = =3D { } > > > is the preferred way to do this in the kernel [1]. So here is a series > > > to take care of that. > >=20 > > 1) Is it worth the churn? > >=20 > > 2) Will this fail to initialize padding with some obscure compiler? >=20 > as of right now, the only two C compilers that are supported are > GCC >=3D 8.1, and Clang >=3D 13.0.1. If anyone even manages to get the > kernel Well... I'm pretty sure parts of this would make it into -stable as a dependency, or because AUTOSEL decides it is a bugfix. So.. GNU C 4.9 gcc --version Clang/LLVM (optional) 10.0.1 clang --version :-). Best regards, Pavel --=20 I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, and Musk! --qHcR0wTfGJLS0CPf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaEsiTwAKCRAw5/Bqldv6 8rWCAJ9iuK1SPCz8Iqmtg2YYJA3QcN1ZcQCcCDOYZeP9LCuc6TXu3fDJPaQEqxk= =IRlm -----END PGP SIGNATURE----- --qHcR0wTfGJLS0CPf-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0B3CC7114A for ; Thu, 12 Jun 2025 19:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O51AcHcsAqlK4RHF7h9V7kvBbyB7QTUKi618bpTs4k4=; b=KWPt7FuPBv4NFiUiZxeoXgb5iG CATjmzLZVD9e8yOl47ZF0xIq/UB3bUP17USiAqpGLALfDrPOqR2qjqttMgFG55VsXk30M9DIANIYo nSpVnNzmqpPWe+tG4GMXFf11txNZQHLXcmwirLL4SbtcFSZ0isIra0cxoY6UsKILIFsaWo1G2i7Ey yGdfjoM7LLBCaS3CkDgUSULw3WtNvcR1NK+Gd08hc+h18peRbgM06Tjwz9QZTNL6Yv8o5RlduaBOX A5mswLipw/EOGd/GnrgDOGzlmh8j4/7siyMRKiD6YNTRWonASjtAtjuu3rwx1066nYEe4ZocyrPre Dohem/ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPntx-0000000EOHr-0rmV; Thu, 12 Jun 2025 19:47:53 +0000 Received: from jabberwock.ucw.cz ([46.255.230.98]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uPn41-0000000E9fO-0Tb3; Thu, 12 Jun 2025 18:54:14 +0000 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0D12D1C00B7; Thu, 12 Jun 2025 20:54:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1749754448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ES0AMk0wkXmaqMy9pIGghKd77rIPki0K7cABoa+Z/Lw=; b=bEFAWNrqxiDB3hTLYkNNin93KGymmobI30NxboUjySkMZZbQ1tDkw60ZqsrwZWSPzNXRLT 19enMfhHWWz0Q5ewQBDGlyH0l4C9Yl59JXD+rK7DCySYJz3mn+lT8d5y3fwG56k5w4oziS 988hpv7ySCcn9jbXEUW0jKpc8UQ+ntg= Date: Thu, 12 Jun 2025 20:54:07 +0200 From: Pavel Machek To: Nicolas Frattaroli Cc: David Lechner , linux-rockchip@lists.infradead.org, Michael Hennerich , Lars-Peter Clausen , Jonathan Cameron , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Matthias Brugger , AngeloGioacchino Del Regno , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Francesco Dolcini , =?iso-8859-1?Q?Jo=E3o_Paulo_Gon=E7alves?= , Leonard =?iso-8859-1?Q?G=F6hrs?= , kernel@pengutronix.de, Oleksij Rempel , Roan van Dijk , Tomasz Duszynski , Jacopo Mondi , Jean-Baptiste Maneyrol , Mudit Sharma , Javier Carrasco , =?utf-8?Q?Ond=C5=99ej?= Jirman , Andreas Klinger , Petre Rodan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH 00/28] iio: zero init stack with { } instead of memset() Message-ID: References: <20250611-iio-zero-init-stack-with-instead-of-memset-v1-0-ebb2d0a24302@baylibre.com> <2243943.irdbgypaU6@workhorse> MIME-Version: 1.0 In-Reply-To: <2243943.irdbgypaU6@workhorse> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250612_115413_613160_985251F2 X-CRM114-Status: GOOD ( 20.30 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6601533306554041857==" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org --===============6601533306554041857== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qHcR0wTfGJLS0CPf" Content-Disposition: inline --qHcR0wTfGJLS0CPf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi1 > I thought I'd chime in as someone uninvolved because this seemed > interesting. >=20 > On Thursday, 12 June 2025 11:17:52 Central European Summer Time Pavel Mac= hek wrote: > > Hi! > >=20 > > > Jonathan mentioned recently that he would like to get away from using > > > memset() to zero-initialize stack memory in the IIO subsystem. And we > > > have it on good authority that initializing a struct or array with = =3D { } > > > is the preferred way to do this in the kernel [1]. So here is a series > > > to take care of that. > >=20 > > 1) Is it worth the churn? > >=20 > > 2) Will this fail to initialize padding with some obscure compiler? >=20 > as of right now, the only two C compilers that are supported are > GCC >=3D 8.1, and Clang >=3D 13.0.1. If anyone even manages to get the > kernel Well... I'm pretty sure parts of this would make it into -stable as a dependency, or because AUTOSEL decides it is a bugfix. So.. GNU C 4.9 gcc --version Clang/LLVM (optional) 10.0.1 clang --version :-). Best regards, Pavel --=20 I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, and Musk! --qHcR0wTfGJLS0CPf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaEsiTwAKCRAw5/Bqldv6 8rWCAJ9iuK1SPCz8Iqmtg2YYJA3QcN1ZcQCcCDOYZeP9LCuc6TXu3fDJPaQEqxk= =IRlm -----END PGP SIGNATURE----- --qHcR0wTfGJLS0CPf-- --===============6601533306554041857== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip --===============6601533306554041857==--