[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] AMD/IOMMU: don't open-code for_each_amd_iommu()



commit e49fc30455dfe31b9b6678501b960957753939a6
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu May 16 13:41:39 2019 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu May 16 13:41:39 2019 +0200

    AMD/IOMMU: don't open-code for_each_amd_iommu()
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/drivers/passthrough/amd/iommu_intr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/amd/iommu_intr.c 
b/xen/drivers/passthrough/amd/iommu_intr.c
index dad2d1e5ab..da3c3c1a44 100644
--- a/xen/drivers/passthrough/amd/iommu_intr.c
+++ b/xen/drivers/passthrough/amd/iommu_intr.c
@@ -503,7 +503,7 @@ static struct amd_iommu *_find_iommu_for_device(int seg, 
int bdf)
 {
     struct amd_iommu *iommu;
 
-    list_for_each_entry ( iommu, &amd_iommu_head, list )
+    for_each_amd_iommu ( iommu )
         if ( iommu->seg == seg && iommu->bdf == bdf )
             return NULL;
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.