iommu/tegra: Fix printk formats for dma_addr_t
authorVarun Sethi <Varun.Sethi@freescale.com>
Thu, 11 Apr 2013 03:49:44 +0000 (09:19 +0530)
committerJoerg Roedel <joro@8bytes.org>
Thu, 2 May 2013 10:09:42 +0000 (12:09 +0200)
Fix printk formats for dma_addr_t:

   drivers/iommu/tegra-smmu.c: In function 'smmu_iommu_iova_to_phys':
>> drivers/iommu/tegra-smmu.c:774:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat]
--
   drivers/iommu/tegra-gart.c: In function 'gart_iommu_iova_to_phys':
>> drivers/iommu/tegra-gart.c:298:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'dma_addr_t' [-Wformat]

Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/tegra-gart.c
drivers/iommu/tegra-smmu.c

index 86437575f94de42fdaca04d91db82a0a434a0b42..c04727402113aff31af3e9faeea9addac4df5644 100644 (file)
@@ -295,7 +295,8 @@ static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain,
 
        pa = (pte & GART_PAGE_MASK);
        if (!pfn_valid(__phys_to_pfn(pa))) {
-               dev_err(gart->dev, "No entry for %08lx:%08x\n", iova, pa);
+               dev_err(gart->dev, "No entry for %08llx:%08x\n",
+                        (unsigned long long)iova, pa);
                gart_dump_table(gart);
                return -EINVAL;
        }
index b34e5fd7fd9e0d688413c24bd6bd8a8f5c1d5c64..1fc359a9189aaac1b878a91aa54daf3a7887912a 100644 (file)
@@ -772,7 +772,8 @@ static phys_addr_t smmu_iommu_iova_to_phys(struct iommu_domain *domain,
        pfn = *pte & SMMU_PFN_MASK;
        WARN_ON(!pfn_valid(pfn));
        dev_dbg(as->smmu->dev,
-               "iova:%08lx pfn:%08lx asid:%d\n", iova, pfn, as->asid);
+               "iova:%08llx pfn:%08lx asid:%d\n", (unsigned long long)iova,
+                pfn, as->asid);
 
        spin_unlock_irqrestore(&as->lock, flags);
        return PFN_PHYS(pfn);