Re: [PATCH v4 8/8] iommu/vt-d: Misc macro clean up for SVM

2019-12-02 Thread Jacob Pan
On Mon, 02 Dec 2019 10:22:13 -0800 Joe Perches wrote: > On Mon, 2019-12-02 at 10:15 -0800, Jacob Pan wrote: > > On Thu, 21 Nov 2019 13:37:10 -0800 > > Joe Perches wrote: > > > > > On Thu, 2019-11-21 at 13:26 -0800, Jacob Pan wrote: > > > > Use combined macros for_each_svm_dev() to simplify

Re: [PATCH v4 8/8] iommu/vt-d: Misc macro clean up for SVM

2019-12-02 Thread Joe Perches
On Mon, 2019-12-02 at 10:15 -0800, Jacob Pan wrote: > On Thu, 21 Nov 2019 13:37:10 -0800 > Joe Perches wrote: > > > On Thu, 2019-11-21 at 13:26 -0800, Jacob Pan wrote: > > > Use combined macros for_each_svm_dev() to simplify SVM device > > > iteration and error checking. > > [] > > > diff

Re: [PATCH v4 8/8] iommu/vt-d: Misc macro clean up for SVM

2019-12-02 Thread Jacob Pan
On Thu, 21 Nov 2019 13:37:10 -0800 Joe Perches wrote: > On Thu, 2019-11-21 at 13:26 -0800, Jacob Pan wrote: > > Use combined macros for_each_svm_dev() to simplify SVM device > > iteration and error checking. > [] > > diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c > [] > >

Re: [PATCH v4 8/8] iommu/vt-d: Misc macro clean up for SVM

2019-11-21 Thread Joe Perches
On Thu, 2019-11-21 at 13:26 -0800, Jacob Pan wrote: > Use combined macros for_each_svm_dev() to simplify SVM device iteration > and error checking. [] > diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c [] > +#define for_each_svm_dev(sdev, svm, d) \ > +

[PATCH v4 8/8] iommu/vt-d: Misc macro clean up for SVM

2019-11-21 Thread Jacob Pan
Use combined macros for_each_svm_dev() to simplify SVM device iteration and error checking. Suggested-by: Andy Shevchenko Signed-off-by: Jacob Pan Reviewed-by: Eric Auger Acked-by: Lu Baolu --- drivers/iommu/intel-svm.c | 81 ++- 1 file changed, 38