From c3910d8367c0547bea27d496b5b2d600e3b3a855 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 7 Jan 2013 15:29:21 +0000 Subject: [PATCH] Build fix for Grsecurity (e.g. Gentoo-Hardened) git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4724 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_mem.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_mem.h b/scst/src/scst_mem.h index 453c11ed8..e02c0def2 100644 --- a/scst/src/scst_mem.h +++ b/scst/src/scst_mem.h @@ -70,7 +70,12 @@ struct sgv_pool_alloc_fns { void *priv); void (*free_pages_fn)(struct scatterlist *sg, int sg_count, void *priv); -}; +} +#ifdef CONSTIFY_PLUGIN +/* Avoid that the Grsecurity gcc constify_plugin constifies this structure. */ +__attribute__((no_const)) +#endif +; /* * SGV pool