aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/blake2s.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-22 03:49:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-24 02:06:26 +0200
commit3130692343c13a8b3fc52a830df42cd437ccef2e (patch)
tree99883031052030fc5da413b9967a3741bd8a70d2 /src/crypto/blake2s.c
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-3130692343c13a8b3fc52a830df42cd437ccef2e.tar.xz
wireguard-monolithic-historical-3130692343c13a8b3fc52a830df42cd437ccef2e.zip
main: annotate init/exit functions to save memory
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r--src/crypto/blake2s.c4
1 files changed, 2 insertions, 2 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])