diff options
-rw-r--r-- | include/net/xfrm.h | 2 | ||||
-rw-r--r-- | net/key/af_key.c | 2 | ||||
-rw-r--r-- | net/xfrm/xfrm_state.c | 12 |
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 | |||
1548 | int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info); | 1548 | int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info); |
1549 | u32 xfrm_get_acqseq(void); | 1549 | u32 xfrm_get_acqseq(void); |
1550 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); | 1550 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); |
1551 | struct xfrm_state *xfrm_find_acq(struct net *net, struct xfrm_mark *mark, | 1551 | struct 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 { | |||
45 | static DEFINE_MUTEX(pfkey_mutex); | 45 | static DEFINE_MUTEX(pfkey_mutex); |
46 | 46 | ||
47 | #define DUMMY_MARK 0 | 47 | #define DUMMY_MARK 0 |
48 | static struct xfrm_mark dummy_mark = {0, 0}; | 48 | static const struct xfrm_mark dummy_mark = {0, 0}; |
49 | struct pfkey_sock { | 49 | struct 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) | |||
990 | EXPORT_SYMBOL(xfrm_state_insert); | 990 | EXPORT_SYMBOL(xfrm_state_insert); |
991 | 991 | ||
992 | /* xfrm_state_lock is held */ | 992 | /* xfrm_state_lock is held */ |
993 | static struct xfrm_state *__find_acq_core(struct net *net, struct xfrm_mark *m, | 993 | static 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, | |||
1399 | EXPORT_SYMBOL(xfrm_state_lookup_byaddr); | 1401 | EXPORT_SYMBOL(xfrm_state_lookup_byaddr); |
1400 | 1402 | ||
1401 | struct xfrm_state * | 1403 | struct xfrm_state * |
1402 | xfrm_find_acq(struct net *net, struct xfrm_mark *mark, u8 mode, u32 reqid, u8 proto, | 1404 | xfrm_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 | ||