From ea81962ee58922fa9f1eadcebbae893262e5dd03 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 26 Feb 2018 14:01:24 +0100 Subject: crypto: read only after init --- src/crypto/curve25519-x86_64.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/crypto/curve25519-x86_64.h') 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 #include #include -static bool curve25519_use_avx __read_mostly; + +static bool curve25519_use_avx __ro_after_init; void __init curve25519_fpu_init(void) { #ifndef CONFIG_UML -- cgit v1.2.3-59-g8ed1b