summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/blake2s.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-26 14:01:24 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-03-02 16:42:29 +0100
commitc08a57a843cc887a1379a731bf0fb99ec8b7a893 (patch)
treeeb246e0249a0bc946591ba0e5f5f529432484900 /src/crypto/blake2s.c
parent3df1ca562433e6afc98fcd137a4520a4d6d359d8 (diff)
crypto: read only after init
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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 1bb3cc1..d5d65c1 100644
--- a/src/crypto/blake2s.c
+++ b/src/crypto/blake2s.c
@@ -113,8 +113,8 @@ void blake2s_init_key(struct blake2s_state *state, const size_t outlen, const vo
#include <asm/processor.h>
#include <asm/fpu/api.h>
#include <asm/simd.h>
-static bool blake2s_use_avx __read_mostly;
-static bool blake2s_use_avx512 __read_mostly;
+static bool blake2s_use_avx __ro_after_init;
+static bool blake2s_use_avx512 __ro_after_init;
void __init blake2s_fpu_init(void)
{
#ifndef CONFIG_UML