summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/compat.h7
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