[PATCH 16/18] arm64: fpsimd: Move sve_flush_live() inline

Mark Brown broonie at kernel.org
Wed May 27 05:54:42 PDT 2026


On Thu, May 21, 2026 at 02:25:54PM +0100, Mark Rutland wrote:
> Currently sve_flush_live() is written in out-of-line assembly. It would
> be nice if we could move it inline such that control flow can be written
> more clearly in C, and to permit the removal of otherwise unused
> assembly macros.

> +static inline void sve_flush_live(void)
> +{
> +	unsigned long vl = sve_get_vl();
> +
> +	if (vl > sizeof(__uint128_t)) {

It feels odd to use sizeof(__unit128_t) here rather than u128.  Whatever
colour the bikeshed is:

Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260527/9db0912a/attachment.sig>


More information about the linux-arm-kernel mailing list