Skip to content

Commit b24b520

Browse files
brooniectmarinas
authored andcommitted
arm64/sve: Make fpsimd_bind_task_to_cpu() static
This function is not referenced outside fpsimd.c so can be static, making it that little bit easier to follow what is called from where. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Dave Martin <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent 8f1fbc9 commit b24b520

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/arm64/include/asm/fpsimd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ extern void fpsimd_preserve_current_state(void);
4545
extern void fpsimd_restore_current_state(void);
4646
extern void fpsimd_update_current_state(struct user_fpsimd_state const *state);
4747

48-
extern void fpsimd_bind_task_to_cpu(void);
4948
extern void fpsimd_bind_state_to_cpu(struct user_fpsimd_state *state,
5049
void *sve_state, unsigned int sve_vl);
5150

arch/arm64/kernel/fpsimd.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ extern void __percpu *efi_sve_state;
162162
DEFINE_PER_CPU(bool, fpsimd_context_busy);
163163
EXPORT_PER_CPU_SYMBOL(fpsimd_context_busy);
164164

165+
static void fpsimd_bind_task_to_cpu(void);
166+
165167
static void __get_cpu_fpsimd_context(void)
166168
{
167169
bool busy = __this_cpu_xchg(fpsimd_context_busy, true);
@@ -1112,7 +1114,7 @@ void fpsimd_signal_preserve_current_state(void)
11121114
* The caller must have ownership of the cpu FPSIMD context before calling
11131115
* this function.
11141116
*/
1115-
void fpsimd_bind_task_to_cpu(void)
1117+
static void fpsimd_bind_task_to_cpu(void)
11161118
{
11171119
struct fpsimd_last_state_struct *last =
11181120
this_cpu_ptr(&fpsimd_last_state);

0 commit comments

Comments
 (0)