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 | c08a57a843cc887a1379a731bf0fb99ec8b7a893 (patch) | |
tree | eb246e0249a0bc946591ba0e5f5f529432484900 /src/crypto/curve25519-x86_64.h | |
parent | 3df1ca562433e6afc98fcd137a4520a4d6d359d8 (diff) |
crypto: read only after init
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/curve25519-x86_64.h')
-rw-r--r-- | src/crypto/curve25519-x86_64.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/curve25519-x86_64.h b/src/crypto/curve25519-x86_64.h index dba5812..c90b13d 100644 --- a/src/crypto/curve25519-x86_64.h +++ b/src/crypto/curve25519-x86_64.h @@ -9,7 +9,8 @@ #include <asm/processor.h> #include <asm/fpu/api.h> #include <asm/simd.h> -static bool curve25519_use_avx __read_mostly; + +static bool curve25519_use_avx __ro_after_init; void __init curve25519_fpu_init(void) { #ifndef CONFIG_UML |