From e74fdd02ab8fd5325f2534067dbfbd3a7254c12a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 22 Oct 2016 16:52:26 +0900 Subject: compat: support PaX constify plugin --- src/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compat.h b/src/compat.h index 8759254..6b748d4 100644 --- a/src/compat.h +++ b/src/compat.h @@ -143,4 +143,11 @@ static inline int padata_queue_len(struct padata_instance *pinst) } #endif +/* PaX compatibility */ +#ifdef CONSTIFY_PLUGIN +#include +#undef __read_mostly +#define __read_mostly +#endif + #endif -- cgit v1.2.3-59-g8ed1b