iommu: Fix printk arg in of_iommu_get_resv_regions()
authorDaniel Mentz <danielmentz@google.com>
Wed, 8 Nov 2023 06:22:26 +0000 (22:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:25 +0000 (08:52 +0100)
commite8841b225b5f1826ec33ed6a713d4fb7e09a4256
treece0d92735c66e44d47287bec7c70ae6ec5689d29
parent6832e5396d68c182871447d438af259d08ee7d36
iommu: Fix printk arg in of_iommu_get_resv_regions()

[ Upstream commit c2183b3dcc9dd41b768569ea88bededa58cceebb ]

The variable phys is defined as (struct resource *) which aligns with
the printk format specifier %pr. Taking the address of it results in a
value of type (struct resource **) which is incompatible with the format
specifier %pr. Therefore, remove the address of operator (&).

Fixes: a5bf3cfce8cb ("iommu: Implement of_iommu_get_resv_regions()")
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20231108062226.928985-1-danielmentz@google.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/of_iommu.c