summaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/curve25519-x86_64.h
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
commitea81962ee58922fa9f1eadcebbae893262e5dd03 (patch)
tree06ddde413aa7a99ab0a41b3bdd5ca264e426a20e /src/crypto/curve25519-x86_64.h
parentKconfig: require DST_CACHE explicitly (diff)
downloadwireguard-monolithic-historical-ea81962ee58922fa9f1eadcebbae893262e5dd03.tar.xz
wireguard-monolithic-historical-ea81962ee58922fa9f1eadcebbae893262e5dd03.zip
crypto: read only after init
Diffstat (limited to '')
-rw-r--r--src/crypto/curve25519-x86_64.h3
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