diff options
| author | Mark Rutland <mark.rutland@arm.com> | 2026-06-03 14:06:26 +0300 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-06-03 18:50:49 +0300 |
| commit | eb1a68a00c0afc88ec60bc96b45d4bfb478ab716 (patch) | |
| tree | 7baf6c0dfa07f08484feec5167908425bef05143 /include | |
| parent | e1b163e405534bcec5026596d90aecd21b766004 (diff) | |
| download | linux-eb1a68a00c0afc88ec60bc96b45d4bfb478ab716.tar.xz | |
arm64: fpsimd: Use opaque type for SME state
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 arm64_sme_state', and
consistently passing a pointer to this.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Fuad Tabba <tabba@google.com>
Cc: James Morse <james.morse@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oupton@kernel.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
