File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
#include <linux/bottom_half.h>
12
+ #include <linux/cache.h>
12
13
#include <linux/interrupt.h>
13
14
#include <linux/slab.h>
14
15
#include <linux/module.h>
@@ -31,7 +32,7 @@ struct xfrm_trans_cb {
31
32
32
33
#define XFRM_TRANS_SKB_CB (__skb ) ((struct xfrm_trans_cb *)&((__skb)->cb[0]))
33
34
34
- static struct kmem_cache * secpath_cachep __read_mostly ;
35
+ static struct kmem_cache * secpath_cachep __ro_after_init ;
35
36
36
37
static DEFINE_SPINLOCK (xfrm_input_afinfo_lock );
37
38
static struct xfrm_input_afinfo const __rcu * xfrm_input_afinfo [AF_INET6 + 1 ];
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static DEFINE_SPINLOCK(xfrm_policy_afinfo_lock);
51
51
static struct xfrm_policy_afinfo const __rcu * xfrm_policy_afinfo [AF_INET6 + 1 ]
52
52
__read_mostly ;
53
53
54
- static struct kmem_cache * xfrm_dst_cache __read_mostly ;
54
+ static struct kmem_cache * xfrm_dst_cache __ro_after_init ;
55
55
static __read_mostly seqcount_t xfrm_policy_hash_generation ;
56
56
57
57
static void xfrm_init_pmtu (struct xfrm_dst * * bundle , int nr );
You can’t perform that action at this time.
0 commit comments