[PATCH 14/18] arm64: fpsimd: Use opaque type for SME state
Mark Brown
broonie at kernel.org
Tue May 26 09:56:21 PDT 2026
On Thu, May 21, 2026 at 02:25:52PM +0100, Mark Rutland wrote:
> As the SME state size can vary at runtime, we don't have a concrete type
> for the in-memory SME state, and pass this around using a pointer to
> void.
>
> Using pointer to void means that it's very easy to introduce errors that
> cannot be caught by the compiler (e.g. as 'void **' can be assigned to
> 'void *').
>
> Improve this by adding an opaque 'struct sve_state', and consistently
> passing a pointer to this.
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/20260526/38c4716e/attachment.sig>
More information about the linux-arm-kernel
mailing list