From: Markus Elfring <Markus.Elfring@web.de>
To: "Can Peng" <pengcan@kylinos.cn>,
iommu@lists.linux.dev, "Jörg Rödel" <joro@8bytes.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Vasant Hegde" <vasant.hegde@amd.com>,
"Will Deacon" <will@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH v3] iommu: use LIST_HEAD() for group_resv_regions initialization
Date: Wed, 14 Jan 2026 07:52:37 +0100 [thread overview]
Message-ID: <bc0973d7-33d2-4fd7-82ac-4f3420bfd4d2@web.de> (raw)
In-Reply-To: <20260114055320.399056-1-pengcan@kylinos.cn>
> 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
parent reply other threads:[~2026-01-14 6:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20260114055320.399056-1-pengcan@kylinos.cn>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc0973d7-33d2-4fd7-82ac-4f3420bfd4d2@web.de \
--to=markus.elfring@web.de \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pengcan@kylinos.cn \
--cc=robin.murphy@arm.com \
--cc=vasant.hegde@amd.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox