[Intel-xe] [PATCH v2 14/31] maple_tree: Export mas_preallocate

Matthew Brost matthew.brost at intel.com
Wed May 10 00:31:03 UTC 2023


On Tue, May 09, 2023 at 03:33:48PM +0200, Thomas Hellström wrote:
> 
> On 5/2/23 02:17, Matthew Brost wrote:
> > The DRM GPUVA implementation needs this function.
> 
> A more thorough explanation as to why  it's needed would help convince maple
> tree maintainers an export is needed.
> 
> Otherwise the change itself LGTM.
> 
> /Thomas
> 

I think version of this is in Linus tree. I think just get this after a
rebase.

Matt

> 
> > 
> > Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> > ---
> >   lib/maple_tree.c | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/lib/maple_tree.c b/lib/maple_tree.c
> > index 9e2735cbc2b4..ae37a167e25d 100644
> > --- a/lib/maple_tree.c
> > +++ b/lib/maple_tree.c
> > @@ -5726,6 +5726,7 @@ int mas_preallocate(struct ma_state *mas, gfp_t gfp)
> >   	mas_reset(mas);
> >   	return ret;
> >   }
> > +EXPORT_SYMBOL_GPL(mas_preallocate);
> >   /*
> >    * mas_destroy() - destroy a maple state.


More information about the Intel-xe mailing list