Message ID | 1577781987-32035-1-git-send-email-krzk@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | d84edddc447df2d87e6ce9fbf94d95225504ab32 |
Headers | show |
Series | [RFT] iommu: omap: Fix -Woverflow warnings when compiling on 64-bit architectures | expand |
diff --git a/drivers/iommu/omap-iopgtable.h b/drivers/iommu/omap-iopgtable.h index 1a4adb59a859..51d74002cc30 100644 --- a/drivers/iommu/omap-iopgtable.h +++ b/drivers/iommu/omap-iopgtable.h @@ -63,7 +63,8 @@ * * va to pa translation */ -static inline phys_addr_t omap_iommu_translate(u32 d, u32 va, u32 mask) +static inline phys_addr_t omap_iommu_translate(unsigned long d, dma_addr_t va, + dma_addr_t mask) { return (d & mask) | (va & (~mask)); }