Re: [PATCH] iommu/io-pgtable-arm: Remove iommu_dev==NULL special case

From: Joerg Roedel
Date: Wed Sep 07 2022 - 08:19:11 EST


On Mon, Aug 15, 2022 at 05:15:55PM +0100, Robin Murphy wrote:
> The special case to allow iommu_dev==NULL in __arm_lpae_alloc_pages() is
> confusing to static checkers (and possibly readers in general), since
> it's not obvious that that is only intended for the selftests. However
> it only serves to get around the dev_to_node() call, and we can easily
> fake up enough to make that work anyway, so let's simply remove this
> consideration from the normal flow and punt the responsibility over to
> the test harness itself.
>
> Reported-by: Rustam Subkhankulov <subkhankulov@xxxxxxxxx>
> Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>

Applied, thanks.