Skip to content

Commit 12cc235

Browse files
brooniewilldeacon
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent b53223e commit 12cc235

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/arm64/include/asm/fpsimd.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ static inline bool sve_vq_available(unsigned int vq)
104104

105105
#ifdef CONFIG_ARM64_SVE
106106

107-
extern size_t sve_state_size(struct task_struct const *task);
108-
109107
extern void sve_alloc(struct task_struct *task);
110108
extern void fpsimd_release_task(struct task_struct *task);
111109
extern void fpsimd_sync_to_sve(struct task_struct *task);

arch/arm64/kernel/fpsimd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static void sve_to_fpsimd(struct task_struct *task)
497497
* Return how many bytes of memory are required to store the full SVE
498498
* state for task, given task's currently configured vector length.
499499
*/
500-
size_t sve_state_size(struct task_struct const *task)
500+
static size_t sve_state_size(struct task_struct const *task)
501501
{
502502
return SVE_SIG_REGS_SIZE(sve_vq_from_vl(task->thread.sve_vl));
503503
}

0 commit comments

Comments
 (0)