diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-12 02:19:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-17 19:26:07 +0200 |
commit | cff9537454ad09a2eca964902f80d53126a3d8be (patch) | |
tree | 088f2fc7912a3fc11702d127bcd9eb17fc3abd56 /src/compat/compat.h | |
parent | noise: handshake constants can be read-only after init (diff) | |
download | wireguard-linux-compat-cff9537454ad09a2eca964902f80d53126a3d8be.tar.xz wireguard-linux-compat-cff9537454ad09a2eca964902f80d53126a3d8be.zip |
compat: just make ro_after_init read_mostly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index efd4d45..65a1076 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -37,6 +37,10 @@ #define headers_end data #endif +#ifndef __ro_after_init +#define __ro_after_init __read_mostly +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) #include "udp_tunnel/udp_tunnel_partial_compat.h" #endif |