From 7adbf628909e87bf5cdc7b4e61dcc05345d0955d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 7 Jan 2013 15:31:35 +0000 Subject: [PATCH] Build fix for Grsecurity (e.g. Gentoo-Hardened) (merge r4724 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4725 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