summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/curve25519-arm.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
commitc08a57a843cc887a1379a731bf0fb99ec8b7a893 (patch)
treeeb246e0249a0bc946591ba0e5f5f529432484900 /src/crypto/curve25519-arm.h
parent3df1ca562433e6afc98fcd137a4520a4d6d359d8 (diff)
crypto: read only after init
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/curve25519-arm.h')
-rw-r--r--src/crypto/curve25519-arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/curve25519-arm.h b/src/crypto/curve25519-arm.h
index 4142e4e..4271ab5 100644
--- a/src/crypto/curve25519-arm.h
+++ b/src/crypto/curve25519-arm.h
@@ -7,7 +7,7 @@
#include <asm/neon.h>
#include <asm/simd.h>
asmlinkage void curve25519_neon(u8 mypublic[CURVE25519_POINT_SIZE], const u8 secret[CURVE25519_POINT_SIZE], const u8 basepoint[CURVE25519_POINT_SIZE]);
-static bool curve25519_use_neon __read_mostly;
+static bool curve25519_use_neon __ro_after_init;
void __init curve25519_fpu_init(void)
{
curve25519_use_neon = elf_hwcap & HWCAP_NEON;