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:
parent
411f2d11ee
commit
af9e6b8f04
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue