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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user