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

Thomas Hellström thomas.hellstrom at linux.intel.com
Tue May 9 13:33:48 UTC 2023


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


>
> 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