diff options
Diffstat (limited to '')
-rw-r--r-- | src/crypto/blake2s.c | 4 | ||||
-rw-r--r-- | src/crypto/chacha20poly1305.c | 4 | ||||
-rw-r--r-- | src/crypto/curve25519.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/crypto/blake2s.c b/src/crypto/blake2s.c index 9610135..1368edc 100644 --- a/src/crypto/blake2s.c +++ b/src/crypto/blake2s.c @@ -110,13 +110,13 @@ void blake2s_init_key(struct blake2s_state *state, const u8 outlen, const void * #include <asm/fpu/api.h> #include <asm/simd.h> static bool blake2s_use_avx __read_mostly = false; -void blake2s_fpu_init(void) +void __init blake2s_fpu_init(void) { blake2s_use_avx = boot_cpu_has(X86_FEATURE_AVX); } asmlinkage void blake2s_compress_avx(struct blake2s_state *state, const u8 block[BLAKE2S_BLOCKBYTES]); #else -void blake2s_fpu_init(void) { } +void __init blake2s_fpu_init(void) { } #endif static inline void blake2s_compress(struct blake2s_state *state, const u8 block[BLAKE2S_BLOCKBYTES]) diff --git a/src/crypto/chacha20poly1305.c b/src/crypto/chacha20poly1305.c index ed40ebb..9e74784 100644 --- a/src/crypto/chacha20poly1305.c +++ b/src/crypto/chacha20poly1305.c @@ -43,7 +43,7 @@ void chacha20poly1305_fpu_init(void) asmlinkage void chacha20_asm_block_xor_neon(u32 *state, u8 *dst, const u8 *src); asmlinkage void chacha20_asm_4block_xor_neon(u32 *state, u8 *dst, const u8 *src); static bool chacha20poly1305_use_neon __read_mostly = false; -void chacha20poly1305_fpu_init(void) +void __init chacha20poly1305_fpu_init(void) { #if defined(CONFIG_ARM64) chacha20poly1305_use_neon = elf_hwcap & HWCAP_ASIMD; @@ -52,7 +52,7 @@ void chacha20poly1305_fpu_init(void) #endif } #else -void chacha20poly1305_fpu_init(void) { } +void __init chacha20poly1305_fpu_init(void) { } #endif #define CHACHA20_IV_SIZE 16 diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c index 119d41a..0fd7a83 100644 --- a/src/crypto/curve25519.c +++ b/src/crypto/curve25519.c @@ -116,12 +116,12 @@ static void curve25519_sandy2x_base(u8 pub[CURVE25519_POINT_SIZE], const u8 secr #include <asm/simd.h> asmlinkage void curve25519_asm_neon(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE], const u8 basepoint[CURVE25519_POINT_SIZE]); static bool curve25519_use_neon __read_mostly = false; -void curve25519_fpu_init(void) +void __init curve25519_fpu_init(void) { curve25519_use_neon = elf_hwcap & HWCAP_NEON; } #else -void curve25519_fpu_init(void) { } +void __init curve25519_fpu_init(void) { } #endif #ifdef __SIZEOF_INT128__ |