* Re: [PATCH v3] iommu: use LIST_HEAD() for group_resv_regions initialization [not found] <20260114055320.399056-1-pengcan@kylinos.cn> @ 2026-01-14 6:52 ` Markus Elfring 0 siblings, 0 replies; only message in thread From: Markus Elfring @ 2026-01-14 6:52 UTC (permalink / raw) To: Can Peng, iommu, Jörg Rödel, Robin Murphy, Vasant Hegde, Will Deacon Cc: LKML, kernel-janitors > 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 ^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-14 6:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260114055320.399056-1-pengcan@kylinos.cn>
2026-01-14 6:52 ` [PATCH v3] iommu: use LIST_HEAD() for group_resv_regions initialization Markus Elfring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox