From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795627509; b=gZCvco+vAGm/ZHsUwajVHm9iVpfvxwnXhV2rYvWGwiTQHF6l55qZAr+Y6uOx3ZaAg+bj 7xge2he4ld5xYLKtogAVbtoggAZOWYUWLiBEp/fqLPu3a2GhW3zH4672RfPAz18Yr6Vbo +6ewxsQCR2M91jh8FlID6zoL8lV8lxE0ult64CrCrqB9fGGpfXi9WebaXBXfGJ84aOF/j EDwdkqPlFHmhhHAuW76LeRTecq1eCeDskPQcT8ohMXh5RLp89O4JtkZiybVpRSAW1GrzE SG8BIJbdWAjZwfz9teWFm4CfrV5wmjkvi5SYyTTmpCPmHNhWb7J0B2cV8pJem3MpEiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795627509; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=UlhGPgddI5evk/VLkfNyj1ZLR1nXU3ehkdGKzq2EUH9/Fd4iVoKhJyrN4REIltrhR8l7 texBqy49qvGyu3YtER6ORSiZHbpPf1FsucQFicHjluIoyh9x0cISJSrYEqhYdsY3mFrQq YbVee19CnhIH+2cLUM4A0fxztMLYD+sEx9/Wh/1auN1wOJ36vZEHDKI8O0nmFyaxFh4BJ dD8AZVJkIYPBczv/bka5b6MwZflKEjLg8JR1zozNABPxLzhf4xsbD4iYUxV2FxtLOpyLj vsEP48B1wlmXoRqlatVy4W9JxLXScFayxD9uu41hM/uDHMUmlknL+lLaWpcmbmvPRvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=agASAMky; arc=none smtp.remote-ip=209.85.221.43 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17B9B606A321 for ; Wed, 25 Nov 2026 17:25:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17B9B606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=agASAMky Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so5367271f8f.0 for ; Wed, 25 Nov 2026 09:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795627506; x=1796232306; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=agASAMkyh7IeB5xcxG2SynQpZ9cwqr9s6pyhZje4+5sgtLYF17fiy4iKBPZ3zR93Bo IHFhWwUhkkw+zJjiYLOI8PuYuGv8QaHDxmsxGmkRnRLNf2LZjXI0+k7pJkj0Qm3MDQX5 Vm/X8/CQt978aK3oG2S/3+AjAjzy8BIBo4NaftuGTaVeHlaKqaPfAVA045b2MYwksz4F eVK3XLqVp6tfXrU4ITxnF5oc1Jw7Jthwz16IaUBwraGMnBL/6JTdSx1WRmDZhIxjr/MP CCH2zcKnJo1tuyTbDAIiMAjxpA3/bXg9GG+6ssbf6N4oygCF8Lo39aW6YDK6Dm9BMySj EmJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795627506; x=1796232306; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=1esZytDxcOA9LnrdJKsDAZ2yWf55CZDIk5MMU4DSdUJz4WD57iB0UckOvmubmWCC10 vQ/lyjxMwVWg13VpWi3+dJwcP2KpYGGm8GJ9PEoyWtBBdmz6duc9ahFez+tAr8/En0fu dOqfokJtkbDH1Fs3NeRQXBAv8VkZp9tvhpCxvgJ0/dQXGKwP060vA/12s0eL25N3AG9x k9ajRs7pJHhIQ1+Mzs3CX8QFZ0U/CDnAC4jieSCK/eI/0pPg8RQwi6cS/GQasfr1ZnMo YfyZgDMin6OG+EoEESz7UcCJBS/UA/b5Gr880sfCm9/fKeP/fVNMI8Lo3S4RstFNHpke McNg== X-Forwarded-Encrypted: i=1; AL+hErFFaEOQlJsgOLiM1tQkFqugSqqCRc+yGb6lDr2eja9SiGeLISL1IKSo7EcsHXy/855FVw5FAFJ4tPIicQQ=@vger.kernel.org X-Gm-Message-State: APuU4Z+fiHYQH4vLdDEplLpdytJU5znNsbyeJFf5eI11vKozFTpAyvVE 4568QGnFvFPoxK12pXEWZv+RgoAGUJ5DW2i03a05RxkIq+eHLs+GM1JjxdyEe6ZE18A= X-Gm-Gg: AZFdTZeWPUbmKesjgD3t1/KFZ1US4idAbHY4NMqMQigC3dSQy8ZbV/jMyi1porkl3Uh OON3QAjau7CvnyWWJI79/ClGG4+mYi547DanB4poXCWoPJ4mneEdMVHnWrfNs7yh5ASgPXVSVxJ Ddc11tOg0uK7cD/ImaAXoldbsZubUQpiXwMZ+OBfUP3Yd/qTGhHnoJ+Sg3GSJoq8CrXHCuDrsve Y+l9XBvc647woRyndSC7DRLyq3kw9exJBBOTOPMhY8Ab+v3U7QvFQ82D3Yz7FBo8MhyXlSSm8G7 EGEjx/FWhJDouHnyjSc4HLd+QcBq2JWGAQV52yA1MKOLDEmFdnGGXftiFiHeQpJ8WedwWiGgpUi ZGhLh6+/ay8RbhU/uQ8lpuntFFYMT9yPV9Z4S3GqwVzcJuKrn3ewlUq+MDz4wrmfh1wQOw3bHTB qd862yQu/h1wsWc65tf7HGNeGAkH/Xkk0d7yDjYKiSoCdrUor9fFxN4C2jlfXGJ3aTFTtSMMrIN n0mTWJRZ6DsqjubbU4Cpvh3jPdzWZ20rRShFL3JKvsBRAIgAGDRdTHiwjOOOo3ypBhL4vorsks6 7GNmvYf72y1H+a1vV5sgBtr+T0UEMc520eHonyzFUlyQz8W8TBmYUjkqUSGmNDu0byMHABgygmg M2AZ5batoHFaYlnGw7g== X-Received: by 2002:a05:6000:178f:b0:4bb:c85e:d565 with SMTP id ffacd0b85a97d-4bbc86e17b5mr436127f8f.55.1795627506305; Wed, 25 Nov 2026 09:25:06 -0800 (PST) Received: from localhost (p200300f65f19a904452474b9d670397a.dip0.t-ipconnect.de. [2003:f6:5f19:a904:4524:74b9:d670:397a]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4ab658e2d1bsm37047838f8f.8.2026.11.25.09.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 09:25:05 -0800 (PST) Date: Wed, 25 Nov 2026 18:25:04 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Pawel Zalewski Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pratyush Yadav , Michael Walle , Takahiro Kuwano , Vladimir Zapolskiy , Robert Jarzmik , Alexander Usyskin , Joern Engel , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Michal Simek , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Brian Norris , Kamal Dasu , Broadcom internal kernel review list , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Ray Jui , Scott Branden , Han Xu , Paul Cercueil , Harvey Hunt , Keguang Zhang , Piotr Wojtaszczyk , Liang Yang , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Manivannan Sadhasivam , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Stefan Agner , Lucas Stach , Thierry Reding , Jonathan Hunter , Jacky Huang , Shan-Chun Hung , Tudor Ambarus , Linus Walleij , Kyungmin Park , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-mips@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays Message-ID: References: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nbybrdipqtjlxyaa" Content-Disposition: inline In-Reply-To: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> --nbybrdipqtjlxyaa Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays MIME-Version: 1.0 On Wed, Nov 25, 2026 at 04:28:26PM +0000, Pawel Zalewski wrote: > This series is converting lists that contain the *_device_id structs, > to make use of named initializers (which they do not use currently). > This work is part of the on going effort in the kernel associated with > device-ids [1] >=20 > The plan is to convert *_device_id::driver_data to have an anonymous > union, like it was introduced for PCI and I2C device ID tables. Not sure I understand that. PCI and I2C wasn't converted yet. ieee1394 and zorro were. > The goal is to increase type-safety (most of the existing casts are gone), > to improve readability and to make use intent a bit more clear: >=20 > ``` > union { > kernel_ulong_t driver_data; > const void *driver_data_ptr; > } > ``` >=20 > But for that to work all lists containing the structs need to use named > initializers first to avoid triggering -Wmissing-braces for that field. > This effort is split per every subsystem into: > - pre-clean-ups that convert the lists to use named initializers > (which is this series) > - actual implementations that make some of the modules use the new > driver_data_ptr member (which is not needed in the mtd subsystem) >=20 > That way the task can be fragmented into manageable and independent chunks > of work and makes this effort easier to review. >=20 > Patches 1-3 implement the named initializer change. > Patched 4-10 are just churn to unify the list termination and can be drop= ped. >=20 > [1] https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@bayl= ibre.com >=20 > Signed-off-by: Pawel Zalewski Acked-by: Uwe Kleine-K=F6nig with or without addressing the nitpick I had for one of the patches. Thanks for going through this Uwe --nbybrdipqtjlxyaa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsHGe4ACgkQj4D7WH0S /k7Hxgf+JDQD3nuNyQeHxxoBDQbZLCdeqai2FGzqlA/wVP4ILYtl0Hj2B4Uvb51m TWG5nlrssz3YpBalM5hoN7zT4/kYrvYV+kEZwlQ0rRaST1L1WSsaI+hIrd+sFqjI E8CbBh9BDS8e2lqRUB02P2qNgrLW8OGoqjf65o8A416iktJ3LaEisuhLP8aVKb9O G9s0nSWXydrbhPM3eKUGdumEvZViZRDTbdQOOZ3Ont4s0nic7RCuY5HxIJAv5u7h n+QP/LXiSy/47VdwvRwqyJDfGxZnUzMHMxb0X6NQg1g1C/xCJFt3XHlD/eUHbI7K axkOeY5ogCnXHhh12ds+XESv7iHqCw== =xvDo -----END PGP SIGNATURE----- --nbybrdipqtjlxyaa-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86B2E606A31E for ; Wed, 25 Nov 2026 17:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DJaQTefy; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=nj1pLOnl 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-Unsubscribe-Post:List-Owner; bh=kZAYwk8xrrDWwAB9MmDVj3EUO9cjK/8Blxw5XgR83f4=; b=DJaQTefyc/PkvgJVldS8WursTm EHMd8NRmqsmbsgccWvwY4MNuuv9u14It/74Mku2UPSjegtYbsuibCR4qD+r2zti6dlIrdiZeDaJTe jxAT2U/WM94bmFWNHemW8TzHdzcuxdxXBp8gHvZ8iIHcLiIyUPKaRx59ipL5gAiW4AW5v10jpePpa PrEqly7QtFbm8Ut5047V7Gq7xkbxj2n8p1w/KieLm+0dX3Wxn2uI3EjcnWKL3qhvlaHoFxISqB1fg DbYgMjYi6VW/KspQ/hUQKTyb5e4obHzmPcBuMCTNzlCitLvEM+EJLheXKPzBqV3lH9nCThiB875vP E4CscGpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWGkI-0000000AjYf-1mIV; Wed, 25 Nov 2026 17:25:26 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWGk0-0000000AjUN-1gDW for linux-amlogic@lists.infradead.org; Wed, 25 Nov 2026 17:25:23 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so5367275f8f.0 for ; Wed, 25 Nov 2026 09:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795627506; x=1796232306; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=nj1pLOnlJEukLuY91AuxsqpPQ8wMaWzgdKOgi/Dw9+VSAgNwjehHkFzDnkuGqOILig iBHD/zDf8xaa+O5cX8c8xpHKYH15oSvtAZdsk0ZYkun7yO22808KCoenRC0iqOEWuknX tek5FXKO4RQuQt26bY+HJ3DP16MI3biVp15l5SodSy178Kz1l4sBFoqZusFspf8MepBZ RWZrx9c6NWBEsN3clqyXKOF0IDKewacL+ZjyyPsfsr/kNPQvK/rrEG+in2X9p+RNQg/n lS/DYR/7DDkZ6TfWRhLVyw6g9Rium1abejby1RqZW3zB4oOBChAz+E7FgbDg+EfB5uFh wU5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795627506; x=1796232306; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=mWA2CxvgzPmh8Ja8auXzjDF0mf2Uijt5eRuMlhQj9H4xnz3tqRBGVdxSuQrrBeYEgF 6Y8YtP4tcsU1eg7NYteOgQ02I7VzrG33fX5czK94GD05GPO5/nc3JxW1E+lqm847FtYW YkRPN8SYt3addbYCfti9UpvzHbQUnM+Y5n0GvdIIJq7Lk2FqOlNWaXSrFknKF7YmzM07 CajePazhJZdii3u2QsgT5RVxA+RtYSWngLMSPq+oNkYCYzxTTeiHOpNE8jr+LlR6FqOP 2+lxf5JrcBg/QbCXtXzhZa6eGyEcY2J0fy1bn8qyLEPv1HzMjhU6UK7WT6gEaFD75Ux4 psoA== X-Forwarded-Encrypted: i=1; AL+hErFaqsHkxVa2r+HYdbzUqwXZpZUc69dBQLdc8PCCKiD1kYwa8xy683f0/DUZ+DAcuvJbksqF15lixBT9JrJN@lists.infradead.org X-Gm-Message-State: APuU4Z84xW3UGyhYFW4GigjXGnjxCN4Kvv/aTIIVL1jxuHjpzD/wEfHq m5M/0+vzat1prJbwbVPvsb8jzO4PMi+46Dm2pnczkviuyDq+bdMFjfdDAN79t31jU9A= X-Gm-Gg: AZFdTZdzaO4mJ8lU5DxVwWz8gDxRz/Xw4if8XPsxbJLvHHMqTGeLjYXH6xjPEZQeFm/ 5lon4yfJ4pMvKwlqjU88nhLzWBuhFLkIdrYGeaZ181Y+oseJzu3ehI/iLSq4effmNlLsHbrgmV1 +4CquTwl7zGJ2nyKusQo34K/+0Fbr18ui/9Frn2ccUGZFv+u5Ghgs5wr75wncsKHoZsKFbzCfAw cpHfZZ73Hgcxa9GORA6deK4+5zSmLPvDgBshLNfHoWCYRh7YepPQrvRMHKnhEWSffCzhzryWVMv J21YF+/eKnfR7P8CTOkwpvKtok6s95JgV9SiIvtVAItv3ReG8TpZ5PFQvRPK3NcOpgohjIRf/gB vFuGkGR4NZPZhyQukh6+VCeacGELdXCA0OVGNBTRPbqC+a7ytP/90HGnW7GQzsURgxxVLQ+Khwj uXIOeF1pmnCkP9QVgcr2FjP3ZL6drIUdtXuzHK9TanQu/0Z95nTQJeLzPyTBK16qkqt3JtRDY5D W7mhQGCvX3eQrbf7ooJeUaFrcHIjhf8Y0PQOaOZJqgtkHUQrq7MNx2MROV4vwRy5cdE8Ipr8aZ5 aqJeR7XBqzbpBL8AkUkPOzfeH7kEx8xdh3Z5dCLllhRr7Z+hSCGz6JOBge2ccO4HJ6rJpLPWP7V I95XQ6tGhQGOinPtUuw== X-Received: by 2002:a05:6000:178f:b0:4bb:c85e:d565 with SMTP id ffacd0b85a97d-4bbc86e17b5mr436127f8f.55.1795627506305; Wed, 25 Nov 2026 09:25:06 -0800 (PST) Received: from localhost (p200300f65f19a904452474b9d670397a.dip0.t-ipconnect.de. [2003:f6:5f19:a904:4524:74b9:d670:397a]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4ab658e2d1bsm37047838f8f.8.2026.11.25.09.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 09:25:05 -0800 (PST) Date: Wed, 25 Nov 2026 18:25:04 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Pawel Zalewski Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pratyush Yadav , Michael Walle , Takahiro Kuwano , Vladimir Zapolskiy , Robert Jarzmik , Alexander Usyskin , Joern Engel , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Michal Simek , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Brian Norris , Kamal Dasu , Broadcom internal kernel review list , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Ray Jui , Scott Branden , Han Xu , Paul Cercueil , Harvey Hunt , Keguang Zhang , Piotr Wojtaszczyk , Liang Yang , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Manivannan Sadhasivam , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Stefan Agner , Lucas Stach , Thierry Reding , Jonathan Hunter , Jacky Huang , Shan-Chun Hung , Tudor Ambarus , Linus Walleij , Kyungmin Park , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-mips@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays Message-ID: References: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261125_092520_750590_7639CBCD X-CRM114-Status: GOOD ( 22.63 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8266138408622169423==" Sender: "linux-amlogic" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============8266138408622169423== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nbybrdipqtjlxyaa" Content-Disposition: inline --nbybrdipqtjlxyaa Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays MIME-Version: 1.0 On Wed, Nov 25, 2026 at 04:28:26PM +0000, Pawel Zalewski wrote: > This series is converting lists that contain the *_device_id structs, > to make use of named initializers (which they do not use currently). > This work is part of the on going effort in the kernel associated with > device-ids [1] >=20 > The plan is to convert *_device_id::driver_data to have an anonymous > union, like it was introduced for PCI and I2C device ID tables. Not sure I understand that. PCI and I2C wasn't converted yet. ieee1394 and zorro were. > The goal is to increase type-safety (most of the existing casts are gone), > to improve readability and to make use intent a bit more clear: >=20 > ``` > union { > kernel_ulong_t driver_data; > const void *driver_data_ptr; > } > ``` >=20 > But for that to work all lists containing the structs need to use named > initializers first to avoid triggering -Wmissing-braces for that field. > This effort is split per every subsystem into: > - pre-clean-ups that convert the lists to use named initializers > (which is this series) > - actual implementations that make some of the modules use the new > driver_data_ptr member (which is not needed in the mtd subsystem) >=20 > That way the task can be fragmented into manageable and independent chunks > of work and makes this effort easier to review. >=20 > Patches 1-3 implement the named initializer change. > Patched 4-10 are just churn to unify the list termination and can be drop= ped. >=20 > [1] https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@bayl= ibre.com >=20 > Signed-off-by: Pawel Zalewski Acked-by: Uwe Kleine-K=F6nig with or without addressing the nitpick I had for one of the patches. Thanks for going through this Uwe --nbybrdipqtjlxyaa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsHGe4ACgkQj4D7WH0S /k7Hxgf+JDQD3nuNyQeHxxoBDQbZLCdeqai2FGzqlA/wVP4ILYtl0Hj2B4Uvb51m TWG5nlrssz3YpBalM5hoN7zT4/kYrvYV+kEZwlQ0rRaST1L1WSsaI+hIrd+sFqjI E8CbBh9BDS8e2lqRUB02P2qNgrLW8OGoqjf65o8A416iktJ3LaEisuhLP8aVKb9O G9s0nSWXydrbhPM3eKUGdumEvZViZRDTbdQOOZ3Ont4s0nic7RCuY5HxIJAv5u7h n+QP/LXiSy/47VdwvRwqyJDfGxZnUzMHMxb0X6NQg1g1C/xCJFt3XHlD/eUHbI7K axkOeY5ogCnXHhh12ds+XESv7iHqCw== =xvDo -----END PGP SIGNATURE----- --nbybrdipqtjlxyaa-- --===============8266138408622169423== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic --===============8266138408622169423==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEAB1606A31E for ; Wed, 25 Nov 2026 17:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=eYzdMr4I; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=nj1pLOnl 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-Unsubscribe-Post:List-Owner; bh=ed+s4CcuB83icuxTSuXIHlO/ZOjcvA7+DFUvz+j34cY=; b=eYzdMr4I5b1iPkhHr8AnVfuQI4 UXAx3qYyPrMyGaltv+xN2QXNGroUAgXB8F5Jp8jWV2945+6l+umo3b+x0ea0uhv4oyMpXkZkWjw3A wozmLHoYaNFw1wWZ1+U6Ry73rGFZ+FArxIdvwhH6Xq7xkHEz2HL7RG4/wjGGwwQp2Ywss5oHWsoPT PlagEdWhXsWWlzP7dlfpNUHIrOBnWrz4oecazcvIeTDhWjBIcfk7OvktPv4270suD/3y8Dkn4CG5Q G2mR5XIhw4PwF+LqfzYcOl+L/QDYm/fS4rlVPHsL2fwif7eZ1suuzM3/39junoYUjxG4Tj6dX2jqJ aN0PVm+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWGkI-0000000AjYY-1JBg; Wed, 25 Nov 2026 17:25:26 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWGk0-0000000AjUO-1gOH for linux-mtd@lists.infradead.org; Wed, 25 Nov 2026 17:25:23 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso5339099f8f.2 for ; Wed, 25 Nov 2026 09:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795627506; x=1796232306; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=nj1pLOnlJEukLuY91AuxsqpPQ8wMaWzgdKOgi/Dw9+VSAgNwjehHkFzDnkuGqOILig iBHD/zDf8xaa+O5cX8c8xpHKYH15oSvtAZdsk0ZYkun7yO22808KCoenRC0iqOEWuknX tek5FXKO4RQuQt26bY+HJ3DP16MI3biVp15l5SodSy178Kz1l4sBFoqZusFspf8MepBZ RWZrx9c6NWBEsN3clqyXKOF0IDKewacL+ZjyyPsfsr/kNPQvK/rrEG+in2X9p+RNQg/n lS/DYR/7DDkZ6TfWRhLVyw6g9Rium1abejby1RqZW3zB4oOBChAz+E7FgbDg+EfB5uFh wU5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795627506; x=1796232306; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/2ZiDJ9tq36ZHWmXeHMEUP2iypybL2OmKVpnewLrfEs=; b=u4n3ekPu3+ypK4bYMo6VHRThBgWDJYLdoKb8kwTA2C34yLL6+Up0nNTf4BP1R04xlr M3kxFaOFHlh+bE8tD40y3HCnhkd0qsciqeKznrBxVdxVv4sgPon//usNMdIk/Ax88p3t ZmBswiZeXWBbe2DCdHBqjJAbMA10eZMx1/0E8eSLlh9hiDfbgaaUA/WQqkrha6sK8hwR l9DTWfYvtMGYLEhTSjSJEsTULed4m7vGBpl31oisGuor4Yc1ktvr4KmZiJ/mTUw4NWeW +13E3j1fYn2LGSL4GNtHyprCD+hrH7+qE4TTpWAapQkd8DBeCyx3Og3biktP2rU18+QW snqQ== X-Forwarded-Encrypted: i=1; AL+hErEakUFxUiRE5IsoGHQSw2wbpBKI6LssUMXDOolo2gng3rRm6JMgSvS6RBXhsMk9tsFv8fsDyAEFJFo=@lists.infradead.org X-Gm-Message-State: APuU4Z94EZ0cmUPPtjbY0H/sUJUhkt1QlrA4lvIxfK1FaFv8culSbrcI KdsbnHoPTjr6A6evn+frHLnOeGJU1PlaD+RfpH8XkgnBu5uD7tmFhcKTOrDQ5j8THYE= X-Gm-Gg: AZFdTZcWjDcTtZ+VTKIJD0cePwFYAtEOevPEkTuVdCNqg9wovAFulzOARVNRavAXfFp 1yyJdRUm7yh1YubfOrhRr5Jl1F5XD/nysJSo3p5+RFDoyTFcCJCd0jkilawVDVlziLR/9+UlgYx EWdgWktiiWQ+2WK9TBPE/5EAO80wiitPJySqRbQxg35ARRikKd5UV0eIHzxONfuTzsO4rdLIZa4 5oDFp/OoP/cXc5qgl7gFAdd9vPa6S1j2hEz3ARPav2Oto0H0I9oKDz1W8bNgLNqwQ2A7zfeW4tN yrmI1o64qJNDgb/Vqy5BNnDIJk5E+27KEdlYiaVccmNy6R9+s+5cdLgvHWcM1AP2ic6iWgSgHu1 MKNKHXR2KDve7kk7ZfSzoRqqEsKOvXr1eC8nPCUZQ8SeqyZk9uJUyVne8L0wdU8W6pwdXWSkfhF 3FaUo0pyc93cUrQ5/ak+FZOUiDQJ3YwWkPmzsPCNTlzFufU8cv4R8KfPkR1WGSy5LU8eVg+2pZJ P0L5AzVE4k6wRDvgeB/ohYGzJWA+GHOjy5IChz1adM74U4j7Ah1jJIjyljfbjpGLiJdDz/39oh/ s/Ordz9xwKHa+o8/G+TWCs5kDEVip2I0I4RzGtFl7TAy/KLXeksNDtaejwTNIQestmqZhrhiruD PZdrECBBi1VYNaUdH1A== X-Received: by 2002:a05:6000:178f:b0:4bb:c85e:d565 with SMTP id ffacd0b85a97d-4bbc86e17b5mr436127f8f.55.1795627506305; Wed, 25 Nov 2026 09:25:06 -0800 (PST) Received: from localhost (p200300f65f19a904452474b9d670397a.dip0.t-ipconnect.de. [2003:f6:5f19:a904:4524:74b9:d670:397a]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4ab658e2d1bsm37047838f8f.8.2026.11.25.09.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 09:25:05 -0800 (PST) Date: Wed, 25 Nov 2026 18:25:04 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Pawel Zalewski Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pratyush Yadav , Michael Walle , Takahiro Kuwano , Vladimir Zapolskiy , Robert Jarzmik , Alexander Usyskin , Joern Engel , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Michal Simek , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Brian Norris , Kamal Dasu , Broadcom internal kernel review list , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Ray Jui , Scott Branden , Han Xu , Paul Cercueil , Harvey Hunt , Keguang Zhang , Piotr Wojtaszczyk , Liang Yang , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Manivannan Sadhasivam , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Stefan Agner , Lucas Stach , Thierry Reding , Jonathan Hunter , Jacky Huang , Shan-Chun Hung , Tudor Ambarus , Linus Walleij , Kyungmin Park , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-mips@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays Message-ID: References: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <20261125-acpi-mtd-v1-0-42ad2f645bee@thegoodpenguin.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261125_092520_663273_B39FD4CD X-CRM114-Status: GOOD ( 23.48 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5302204008001941329==" Sender: "linux-mtd" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============5302204008001941329== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nbybrdipqtjlxyaa" Content-Disposition: inline --nbybrdipqtjlxyaa Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 00/10] mtd: use desginated initializers in *_device_id arrays MIME-Version: 1.0 On Wed, Nov 25, 2026 at 04:28:26PM +0000, Pawel Zalewski wrote: > This series is converting lists that contain the *_device_id structs, > to make use of named initializers (which they do not use currently). > This work is part of the on going effort in the kernel associated with > device-ids [1] >=20 > The plan is to convert *_device_id::driver_data to have an anonymous > union, like it was introduced for PCI and I2C device ID tables. Not sure I understand that. PCI and I2C wasn't converted yet. ieee1394 and zorro were. > The goal is to increase type-safety (most of the existing casts are gone), > to improve readability and to make use intent a bit more clear: >=20 > ``` > union { > kernel_ulong_t driver_data; > const void *driver_data_ptr; > } > ``` >=20 > But for that to work all lists containing the structs need to use named > initializers first to avoid triggering -Wmissing-braces for that field. > This effort is split per every subsystem into: > - pre-clean-ups that convert the lists to use named initializers > (which is this series) > - actual implementations that make some of the modules use the new > driver_data_ptr member (which is not needed in the mtd subsystem) >=20 > That way the task can be fragmented into manageable and independent chunks > of work and makes this effort easier to review. >=20 > Patches 1-3 implement the named initializer change. > Patched 4-10 are just churn to unify the list termination and can be drop= ped. >=20 > [1] https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@bayl= ibre.com >=20 > Signed-off-by: Pawel Zalewski Acked-by: Uwe Kleine-K=F6nig with or without addressing the nitpick I had for one of the patches. Thanks for going through this Uwe --nbybrdipqtjlxyaa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsHGe4ACgkQj4D7WH0S /k7Hxgf+JDQD3nuNyQeHxxoBDQbZLCdeqai2FGzqlA/wVP4ILYtl0Hj2B4Uvb51m TWG5nlrssz3YpBalM5hoN7zT4/kYrvYV+kEZwlQ0rRaST1L1WSsaI+hIrd+sFqjI E8CbBh9BDS8e2lqRUB02P2qNgrLW8OGoqjf65o8A416iktJ3LaEisuhLP8aVKb9O G9s0nSWXydrbhPM3eKUGdumEvZViZRDTbdQOOZ3Ont4s0nic7RCuY5HxIJAv5u7h n+QP/LXiSy/47VdwvRwqyJDfGxZnUzMHMxb0X6NQg1g1C/xCJFt3XHlD/eUHbI7K axkOeY5ogCnXHhh12ds+XESv7iHqCw== =xvDo -----END PGP SIGNATURE----- --nbybrdipqtjlxyaa-- --===============5302204008001941329== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ --===============5302204008001941329==--