diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-26 14:01:24 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-03-02 16:42:29 +0100 |
commit | ea81962ee58922fa9f1eadcebbae893262e5dd03 (patch) | |
tree | 06ddde413aa7a99ab0a41b3bdd5ca264e426a20e /src/crypto/blake2s.c | |
parent | Kconfig: require DST_CACHE explicitly (diff) | |
download | wireguard-monolithic-historical-ea81962ee58922fa9f1eadcebbae893262e5dd03.tar.xz wireguard-monolithic-historical-ea81962ee58922fa9f1eadcebbae893262e5dd03.zip |
crypto: read only after init
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r-- | src/crypto/blake2s.c | 4 |
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 |