Skip to contentSkip to conversation

arm64: neon/efi: Make EFI fpsimd save/restore variables static

PATCH New Dave Martin 2 participants 2 messages Aug 18, 2017 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: neon/efi: Make EFI fpsimd save/restore variables static

The percpu variables efi_fpsimd_state and efi_fpsimd_state_used, used by the FPSIMD save/restore routines for EFI calls, are unintentionally global.

There's no reason for anything outside fpsimd.c to touch these, so this patch makes them static (as they should have been in the first place).

---
 arch/arm64/kernel/fpsimd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/kernel/fpsimd.c +2 -2
index 138fcfa..ceb0ff0 100644
@@ -320,8 +320,8 @@ void kernel_neon_end(void)
 }
 EXPORT_SYMBOL(kernel_neon_end);
 
-DEFINE_PER_CPU(struct fpsimd_state, efi_fpsimd_state);
-DEFINE_PER_CPU(bool, efi_fpsimd_state_used);
+static DEFINE_PER_CPU(struct fpsimd_state, efi_fpsimd_state);
+static DEFINE_PER_CPU(bool, efi_fpsimd_state_used);
 
 /*
  * EFI runtime services support functions
Signature · 1 line
2.1.4
maintainer Applied
#1 lore raw

PATCH 1/1 arm64: neon/efi: Make EFI fpsimd save/restore variables static

Quoted 9 lines · Dave P Martin

The percpu variables efi_fpsimd_state and efi_fpsimd_state_used, used by the FPSIMD save/restore routines for EFI calls, are unintentionally global.

There's no reason for anything outside fpsimd.c to touch these, so this patch makes them static (as they should have been in the first place).

Applied to for-next/kernel-mode-neon. Thanks.

Signature · 1 line
Catalin