aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/tegra-gart.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-09-17 04:19:31 -0400
committerJoerg Roedel <joro@8bytes.org>2013-09-24 08:47:28 -0400
commite56b3dab34d41804b57b900f5b7e7837ece0367b (patch)
tree06e510280f702388d984e48fb052d39130e9a836 /drivers/iommu/tegra-gart.c
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
iommu/tegra: Print phys_addr_t using %pa
When enabling LPAE on ARM, phys_addr_t becomes 64 bits wide and printing a variable of that type using a simple %x format specifier causes the compiler to complain. Change the format specifier to %pa, which is used specifically for variables of type phys_addr_t. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
-rw-r--r--drivers/iommu/tegra-gart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index 108c0e9c24d9..8993999fd2f4 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -252,7 +252,7 @@ static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova,
252 spin_lock_irqsave(&gart->pte_lock, flags); 252 spin_lock_irqsave(&gart->pte_lock, flags);
253 pfn = __phys_to_pfn(pa); 253 pfn = __phys_to_pfn(pa);
254 if (!pfn_valid(pfn)) { 254 if (!pfn_valid(pfn)) {
255 dev_err(gart->dev, "Invalid page: %08x\n", pa); 255 dev_err(gart->dev, "Invalid page: %pa\n", &pa);
256 spin_unlock_irqrestore(&gart->pte_lock, flags); 256 spin_unlock_irqrestore(&gart->pte_lock, flags);
257 return -EINVAL; 257 return -EINVAL;
258 } 258 }
@@ -295,8 +295,8 @@ static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain,
295 295
296 pa = (pte & GART_PAGE_MASK); 296 pa = (pte & GART_PAGE_MASK);
297 if (!pfn_valid(__phys_to_pfn(pa))) { 297 if (!pfn_valid(__phys_to_pfn(pa))) {
298 dev_err(gart->dev, "No entry for %08llx:%08x\n", 298 dev_err(gart->dev, "No entry for %08llx:%pa\n",
299 (unsigned long long)iova, pa); 299 (unsigned long long)iova, &pa);
300 gart_dump_table(gart); 300 gart_dump_table(gart);
301 return -EINVAL; 301 return -EINVAL;
302 } 302 }