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/curve25519-arm.h | |
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/curve25519-arm.h')
-rw-r--r-- | src/crypto/curve25519-arm.h | 2 |
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; |