[PATCH v3 02/11] iommufd: Rename _iommufd_object_alloc to iommufd_object_alloc_elm
Jason Gunthorpe
jgg at nvidia.com
Thu Oct 17 09:54:00 PDT 2024
On Thu, Oct 17, 2024 at 09:48:23AM -0700, Nicolin Chen wrote:
> On Thu, Oct 17, 2024 at 01:35:07PM -0300, Jason Gunthorpe wrote:
> > On Thu, Oct 17, 2024 at 09:12:03AM -0700, Nicolin Chen wrote:
> >
> > > > Then you can keep the pattern of _ being the allocation function of
> > > > the macro
> > >
> > > If I get it correctly, the change would be
> > > [From]
> > > level-0: iommufd_object_alloc()
> > > level-1: __iommufd_object_alloc()
> > > level-2: _iommufd_object_alloc()
> > > [To]
> > > level-0: iommufd_object_alloc()
> > > level-1: iommufd_object_alloc_elm()
> > > level-2: _iommufd_object_alloc()
> > >
> > > i.e. change the level-1 only.
> >
> > You could also call it _iommufd_object_alloc_elm() to keep the pattern
> >
> > Maymbe "member" is a better word here than elm
>
> Ack.
>
> level-0: iommufd_object_alloc()
> level-1: _iommufd_object_alloc_member()
> level-2: _iommufd_object_alloc()
Keep the pattern:
level-0: iommufd_object_alloc()
level-1: iommufd_object_alloc_member()
level-2: _iommufd_object_alloc_member()
Jason
More information about the linux-arm-kernel
mailing list