Re: [PATCH v7 05/15] iommu: Use bitmap to calculate page size in iommu_pgsize()

2021-06-17 Thread Lu Baolu
On 6/16/21 9:38 PM, Georgi Djakov wrote: From: Will Deacon Avoid the potential for shifting values by amounts greater than the width of their type by using a bitmap to compute page size in iommu_pgsize(). Signed-off-by: Will Deacon Signed-off-by: Isaac J. Manjarres Signed-off-by: Georgi

[PATCH v7 05/15] iommu: Use bitmap to calculate page size in iommu_pgsize()

2021-06-16 Thread Georgi Djakov
From: Will Deacon Avoid the potential for shifting values by amounts greater than the width of their type by using a bitmap to compute page size in iommu_pgsize(). Signed-off-by: Will Deacon Signed-off-by: Isaac J. Manjarres Signed-off-by: Georgi Djakov --- drivers/iommu/iommu.c | 31