[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6af1bb46-89fb-46a8-94d8-61df8f1a50f7@web.de>
Date: Sat, 10 Jan 2026 12:48:14 +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>, Will Deacon <will@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] iommu: simplify list initialization in
iommu_create_device_direct_mappings()
> Use LIST_HEAD() to declare and initialize the 'mappings' list head in
> iommu_create_device_direct_mappings() instead of separate declaration and
> INIT_LIST_HEAD(). This simplifies the code by combining declaration and
> initialization into a single idiomatic form, improving readability without
> changing functionality.
…
How do you think about to repeat the mentioned transformation approach for the implementation
of the function “iommu_group_show_resv_regions”?
https://elixir.bootlin.com/linux/v6.19-rc4/source/drivers/iommu/iommu.c#L949-L969
Regards,
Markus
Powered by blists - more mailing lists