RE: [PATCH v2 22/31] iommu/vt-d: Export a helper to do function for each dmar_drhd_unit

Tian, Kevin
2026-04-24T06:51:16Z

> From: Xu Yilun <yilun.xu@linux.intel.com>
> Sent: Wednesday, April 22, 2026 2:34 PM
>
> On Thu, Apr 09, 2026 at 07:49:46AM +0000, Tian, Kevin wrote:
> > > From: Xu Yilun <yilun.xu@linux.intel.com>
> > > Sent: Saturday, March 28, 2026 12:01 AM
> > >
> > > @@ -86,6 +86,8 @@ extern struct list_head dmar_drhd_units;
> > > dmar_rcu_check()) \
> > > if (i=drhd->iommu, 0) {} else
> > >
> > > +int do_for_each_drhd_unit(int (*fn)(struct dmar_drhd_unit *));
> > > +
> > > static inline bool dmar_rcu_check(void)
> >
> > It's a bit weird to insert it here. Move it to follow for_each_iommu().
>
> Sorry, it is following for_each_iommu(), is it?
>

yeah, I misread it.