[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bc0973d7-33d2-4fd7-82ac-4f3420bfd4d2@web.de>
Date: Wed, 14 Jan 2026 07:52:37 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Can Peng <pengcan@...inos.cn>, iommu@...ts.linux.dev,
Jörg Rödel <joro@...tes.org>,
Robin Murphy <robin.murphy@....com>, Vasant Hegde <vasant.hegde@....com>,
Will Deacon <will@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v3] iommu: use LIST_HEAD() for group_resv_regions
initialization
> Replace the manual declaration and INIT_LIST_HEAD() call with the
> LIST_HEAD() macro when initializing group_resv_regions in
> iommu_group_show_resv_regions(). This simplifies the code and makes
Simplify? make?
> the list initialization more concise.
…
> ---
> ### Changes since v2:
…
> - Retained the LIST_HEAD() cleanup pattern consistently across the file.
Can you recognise further adjustment opportunities from the presented small script
for the semantic patch language?
https://lore.kernel.org/cocci/34ed442d-6ebd-4907-a77c-2c08db799411@web.de/
https://sympa.inria.fr/sympa/arc/cocci/2026-01/msg00002.html
https://lkml.org/lkml/2026/1/12/932
Example for another update candidate:
iommu_get_group_resv_regions()
https://elixir.bootlin.com/linux/v6.19-rc5/source/drivers/iommu/iommu.c#L920-L946
Regards,
Markus
Powered by blists - more mailing lists