aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/xfrm.h2
-rw-r--r--net/key/af_key.c2
-rw-r--r--net/xfrm/xfrm_state.c12
3 files changed, 9 insertions, 7 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 94ce082b29dc..89d3d8ae204e 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1548,7 +1548,7 @@ struct xfrm_policy *xfrm_policy_byid(struct net *net, u32 mark, u8, int dir, u32
1548int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info); 1548int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info);
1549u32 xfrm_get_acqseq(void); 1549u32 xfrm_get_acqseq(void);
1550extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); 1550extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi);
1551struct xfrm_state *xfrm_find_acq(struct net *net, struct xfrm_mark *mark, 1551struct xfrm_state *xfrm_find_acq(struct net *net, const struct xfrm_mark *mark,
1552 u8 mode, u32 reqid, u8 proto, 1552 u8 mode, u32 reqid, u8 proto,
1553 const xfrm_address_t *daddr, 1553 const xfrm_address_t *daddr,
1554 const xfrm_address_t *saddr, int create, 1554 const xfrm_address_t *saddr, int create,
diff --git a/net/key/af_key.c b/net/key/af_key.c
index ab8bd2cabfa0..4089a210e852 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -45,7 +45,7 @@ struct netns_pfkey {
45static DEFINE_MUTEX(pfkey_mutex); 45static DEFINE_MUTEX(pfkey_mutex);
46 46
47#define DUMMY_MARK 0 47#define DUMMY_MARK 0
48static struct xfrm_mark dummy_mark = {0, 0}; 48static const struct xfrm_mark dummy_mark = {0, 0};
49struct pfkey_sock { 49struct pfkey_sock {
50 /* struct sock must be the first member of struct pfkey_sock */ 50 /* struct sock must be the first member of struct pfkey_sock */
51 struct sock sk; 51 struct sock sk;
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 78f66fa92449..b2cd806c0be3 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -990,11 +990,13 @@ void xfrm_state_insert(struct xfrm_state *x)
990EXPORT_SYMBOL(xfrm_state_insert); 990EXPORT_SYMBOL(xfrm_state_insert);
991 991
992/* xfrm_state_lock is held */ 992/* xfrm_state_lock is held */
993static struct xfrm_state *__find_acq_core(struct net *net, struct xfrm_mark *m, 993static struct xfrm_state *__find_acq_core(struct net *net,
994 const struct xfrm_mark *m,
994 unsigned short family, u8 mode, 995 unsigned short family, u8 mode,
995 u32 reqid, u8 proto, 996 u32 reqid, u8 proto,
996 const xfrm_address_t *daddr, 997 const xfrm_address_t *daddr,
997 const xfrm_address_t *saddr, int create) 998 const xfrm_address_t *saddr,
999 int create)
998{ 1000{
999 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family); 1001 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
1000 struct xfrm_state *x; 1002 struct xfrm_state *x;
@@ -1399,9 +1401,9 @@ xfrm_state_lookup_byaddr(struct net *net, u32 mark,
1399EXPORT_SYMBOL(xfrm_state_lookup_byaddr); 1401EXPORT_SYMBOL(xfrm_state_lookup_byaddr);
1400 1402
1401struct xfrm_state * 1403struct xfrm_state *
1402xfrm_find_acq(struct net *net, struct xfrm_mark *mark, u8 mode, u32 reqid, u8 proto, 1404xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid,
1403 const xfrm_address_t *daddr, const xfrm_address_t *saddr, 1405 u8 proto, const xfrm_address_t *daddr,
1404 int create, unsigned short family) 1406 const xfrm_address_t *saddr, int create, unsigned short family)
1405{ 1407{
1406 struct xfrm_state *x; 1408 struct xfrm_state *x;
1407 1409