Re: [PATCH v5 07/27] iommu/arm-smmu-v3: Move IDR parsing to common functions
From: Jason Gunthorpe
Date: Wed Dec 17 2025 - 09:06:57 EST
On Fri, Dec 12, 2025 at 03:42:15PM +0000, Mostafa Saleh wrote:
> On Fri, Nov 28, 2025 at 12:48:16PM -0400, Jason Gunthorpe wrote:
> > On Mon, Nov 17, 2025 at 06:47:54PM +0000, Mostafa Saleh wrote:
> > > Move parsing of IDRs to functions so that it can be re-used
> > > from the hypervisor.
> > >
> > > Signed-off-by: Mostafa Saleh <smostafa@xxxxxxxxxx>
> > > ---
> > > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 112 +++-----------------
> > > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 111 +++++++++++++++++++
> > > 2 files changed, 126 insertions(+), 97 deletions(-)
> >
> > I don't see that this slow path stuff needs to be inlined?
> >
> > +10 to my prior remark to not dump all the huge inlines in the main
> > header.
>
> They are inline as they are defined in the header file, otherwise they
> get defined multiple times.
Put them in a shared C file
Jason