Re: [PATCH v6 03/12] xarray: move xas_result() and xa_zero_to_null() to the header
From: Philipp Stanner
Date: Wed Nov 25 2026 - 07:27:45 EST
On Fri, 2026-11-20 at 14:10 +0100, Andreas Hindborg wrote:
> The functions xas_result() and xa_zero_to_null() are static in
> lib/xarray.c. Upcoming Rust XArray changes need to call them from
> Rust helper functions. Move them to include/linux/xarray.h as static
> inline functions, following the approach of commit 79ada2ae6615
> ("xarray: extract helper from __xa_{insert,cmpxchg}").
>
> No functional change.
>
> Suggested-by: Tamir Duberstein <tamird@xxxxxxxxxx>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
Reviewed-by: Philipp Stanner <phasta@xxxxxxxxxx>