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 (&).
Unified · Split
| @@ -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 | } |