From d9041e88616b73872087859072aa59ab672752a7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 12 Oct 2017 02:19:13 +0200 Subject: compat: just make ro_after_init read_mostly --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compat/compat.h') 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 -- cgit v1.2.3-59-g8ed1b