diff options
author | Mark Brown <broonie@kernel.org> | 2021-10-19 19:22:08 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-21 11:18:17 +0200 |
commit | 12cc2352bfb34dbdf97e51b006c32a8bd0d13bcb (patch) | |
tree | 22d355418e6e7e287dda201d6b8dc6cdf6566047 /arch/arm64/kernel/fpsimd.c | |
parent | arm64/sve: Remove sve_load_from_fpsimd_state() (diff) | |
download | linux-12cc2352bfb34dbdf97e51b006c32a8bd0d13bcb.tar.xz linux-12cc2352bfb34dbdf97e51b006c32a8bd0d13bcb.zip |
arm64/sve: Make sve_state_size() static
There are no users outside fpsimd.c so make sve_state_size() static.
KVM open codes an equivalent.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211019172247.3045838-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/fpsimd.c')
-rw-r--r-- | arch/arm64/kernel/fpsimd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 995f8801602b..0f6df1ece618 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -497,7 +497,7 @@ static void sve_to_fpsimd(struct task_struct *task) * Return how many bytes of memory are required to store the full SVE * state for task, given task's currently configured vector length. */ -size_t sve_state_size(struct task_struct const *task) +static size_t sve_state_size(struct task_struct const *task) { return SVE_SIG_REGS_SIZE(sve_vq_from_vl(task->thread.sve_vl)); } |