From 78324526f9bf11d55c52c28bc781f2fafc7293a5 Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Fri, 13 Apr 2018 13:09:05 +0900 Subject: [PATCH] [COMMON] iommu/exynos: fix prevent issue This patch fixed BITSHIFT_MIGHT_OVERFLOW issue that was detected by prevent. Change-Id: I59d662f3d2d3e671cacd51349253ff8871b1e8f3 Signed-off-by: Janghyuck Kim --- drivers/iommu/exynos-iommu-reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/exynos-iommu-reg.h b/drivers/iommu/exynos-iommu-reg.h index 744cc713caff..f1cc558f9d2b 100644 --- a/drivers/iommu/exynos-iommu-reg.h +++ b/drivers/iommu/exynos-iommu-reg.h @@ -126,7 +126,7 @@ static inline void sysmmu_sbb_compare(u32 sbb_vpn, u32 sbb_link, phys_addr_t pgtable) { sysmmu_pte_t *entry; - unsigned long vaddr = MMU_VADDR_FROM_SBB(sbb_vpn); + unsigned long vaddr = MMU_VADDR_FROM_SBB((unsigned long)sbb_vpn); unsigned long paddr = MMU_PADDR_FROM_SBB((unsigned long)sbb_link); unsigned long phys = 0; -- 2.20.1