From 3130692343c13a8b3fc52a830df42cd437ccef2e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 22 Jun 2017 03:49:57 +0200 Subject: main: annotate init/exit functions to save memory --- src/crypto/blake2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crypto/blake2s.c') 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 #include 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]) -- cgit v1.2.3-59-g8ed1b