mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
iommu/omap: fix printk formats for dma_addr_t
Fixed the following printk format warnings for dma_addr_t for OMAP IOMMU. drivers/iommu/omap-iommu.c: In function 'omap_iommu_iova_to_phys': drivers/iommu/omap-iommu.c:1238:4: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'dma_addr_t' drivers/iommu/omap-iommu.c:1245:4: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'dma_addr_t' Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
This commit is contained in:
parent
7d13205581
commit
2abfcfbcf0
1 changed files with 4 additions and 2 deletions
|
@ -1235,14 +1235,16 @@ static phys_addr_t omap_iommu_iova_to_phys(struct iommu_domain *domain,
|
||||||
else if (iopte_is_large(*pte))
|
else if (iopte_is_large(*pte))
|
||||||
ret = omap_iommu_translate(*pte, da, IOLARGE_MASK);
|
ret = omap_iommu_translate(*pte, da, IOLARGE_MASK);
|
||||||
else
|
else
|
||||||
dev_err(dev, "bogus pte 0x%x, da 0x%lx", *pte, da);
|
dev_err(dev, "bogus pte 0x%x, da 0x%llx", *pte,
|
||||||
|
(unsigned long long)da);
|
||||||
} else {
|
} else {
|
||||||
if (iopgd_is_section(*pgd))
|
if (iopgd_is_section(*pgd))
|
||||||
ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK);
|
ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK);
|
||||||
else if (iopgd_is_super(*pgd))
|
else if (iopgd_is_super(*pgd))
|
||||||
ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK);
|
ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK);
|
||||||
else
|
else
|
||||||
dev_err(dev, "bogus pgd 0x%x, da 0x%lx", *pgd, da);
|
dev_err(dev, "bogus pgd 0x%x, da 0x%llx", *pgd,
|
||||||
|
(unsigned long long)da);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue