History

iommu: Fix printk arg in of_iommu_get_resv_regions()

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 (&).

Daniel Mentz committed 3 years ago

Commit c2183b31 parent e378c7d1 file · +1 −1Browse files

Unified · Split

drivers/iommu/of_iommu.c+1−1
@@ -197,7 +197,7 @@ iommu_resv_region_get_type(struct device *dev, · 196 unmodified lines
197 if (start == phys->start && end == phys->end)197 if (start == phys->start && end == phys->end)
198 return IOMMU_RESV_DIRECT;198 return IOMMU_RESV_DIRECT;
199 199
200 dev_warn(dev, "treating non-direct mapping [%pr] -> [%pap-%pap] as reservation\n", &phys,200 dev_warn(dev, "treating non-direct mapping [%pr] -> [%pap-%pap] as reservation\n", phys,
201 &start, &end);201 &start, &end);
202 return IOMMU_RESV_RESERVED;202 return IOMMU_RESV_RESERVED;
203}203}