Re: [PATCH v3] iommu: use LIST_HEAD() for group_resv_regions initialization
From: Markus Elfring
Date: Wed Jan 14 2026 - 01:53:11 EST
> 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@xxxxxx/
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