]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64/sve: Make sve_state_size() static
authorMark Brown <broonie@kernel.org>
Tue, 19 Oct 2021 17:22:08 +0000 (18:22 +0100)
committerWill Deacon <will@kernel.org>
Thu, 21 Oct 2021 09:18:17 +0000 (10:18 +0100)
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>
arch/arm64/include/asm/fpsimd.h
arch/arm64/kernel/fpsimd.c

index e0e30567b80f809975b0daf8b698d393df55861e..917ecc301d1dd4694bbce9fb00b764cca20e8dcd 100644 (file)
@@ -104,8 +104,6 @@ static inline bool sve_vq_available(unsigned int vq)
 
 #ifdef CONFIG_ARM64_SVE
 
-extern size_t sve_state_size(struct task_struct const *task);
-
 extern void sve_alloc(struct task_struct *task);
 extern void fpsimd_release_task(struct task_struct *task);
 extern void fpsimd_sync_to_sve(struct task_struct *task);
index 995f8801602bb2bbf0839c1317905a98e54d3f7a..0f6df1ece6188ce600f0f206a903d3093109b674 100644 (file)
@@ -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));
 }