From c757e8528a304214d0a9be2e99011b94bf374d37 Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Wed, 30 Jul 2014 11:33:25 +0100 Subject: [PATCH] iommu/arm-smmu: use page shift instead of page size to avoid division Arbitrary integer division is not available in all ARM CPUs, so the GCC may spit out calls to helper functions which are not implemented in the kernel. This patch avoids these problems in the SMMU driver by using page shift instead of page size, so that divisions by the page size (as required by the vSMMU code) can be expressed as a simple right shift. Signed-off-by: Will Deacon --- Reading git-format-patch failed