iommu/iova: fix cpu from 'unsigned long' to 'unsigned int' for for_each_online_cpu

Fixes: 4fe55239b3 ("iommu/iova: add iova procfs for each dma iommu")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I2206cec92eaca795faaf18df6117b36108ea75b4
This commit is contained in:
Jianqun Xu
2022-11-14 14:45:45 +08:00
committed by Tao Huang
parent 411f2d11ee
commit af9e6b8f04
+2 -1
View File
@@ -33,8 +33,9 @@ static int iova_used_show(struct seq_file *s, void *v)
{
struct iova_domain *iovad = s->private;
struct iova *iova, *t;
unsigned long flags, cpu;
unsigned long flags;
unsigned long used_pfn = 0;
unsigned int cpu;
int i = 0;
for_each_online_cpu(cpu)