summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorAlexey Dobriyan2018-02-24 19:21:38 +0100
committerSteffen Klassert2018-02-27 10:46:01 +0100
commitf8c3d0dda4b09e05ad8781764cbe153815c1bf23 (patch)
tree29e6365cc83390b6025d101d3edd4eed2c5fa591 /net/xfrm/xfrm_policy.c
parentesp4: remove redundant initialization of pointer esph (diff)
downloadkernel-qcow2-linux-f8c3d0dda4b09e05ad8781764cbe153815c1bf23.tar.gz
kernel-qcow2-linux-f8c3d0dda4b09e05ad8781764cbe153815c1bf23.tar.xz
kernel-qcow2-linux-f8c3d0dda4b09e05ad8781764cbe153815c1bf23.zip
xfrm: mark kmem_caches as __ro_after_init
Kmem caches aren't relocated once set up. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 7a23078132cf..12bd415d349e 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -51,7 +51,7 @@ static DEFINE_SPINLOCK(xfrm_policy_afinfo_lock);
static struct xfrm_policy_afinfo const __rcu *xfrm_policy_afinfo[AF_INET6 + 1]
__read_mostly;
-static struct kmem_cache *xfrm_dst_cache __read_mostly;
+static struct kmem_cache *xfrm_dst_cache __ro_after_init;
static __read_mostly seqcount_t xfrm_policy_hash_generation;
static void xfrm_init_pmtu(struct xfrm_dst **bundle, int nr);