diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-10-22 16:52:26 +0900 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-10-22 16:52:26 +0900 |
commit | f530808906141502dc8944bca5b822970b4dead7 (patch) | |
tree | debaa16bce1a0a2880500744860d1bbd831e7301 /src | |
parent | 2a0f2b2a4acbb93d263293f4b69605eb7006e6f7 (diff) |
compat: support PaX constify plugin
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <linux/cache.h> +#undef __read_mostly +#define __read_mostly +#endif + #endif |