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
197197 if (start == phys->start && end == phys->end)
198198 return IOMMU_RESV_DIRECT;
199199
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,
201201 &start, &end);
202202 return IOMMU_RESV_RESERVED;
203203 }