diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 01:47:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-24 02:07:47 -0500 |
commit | 2ab38503d0dff932cb657d8ef6055f28910ac0ef (patch) | |
tree | 9c646488613d5fbd21f3d341a4f48d8758bddcae /net | |
parent | 9a7386ec999ae226890faea2661b4c7d494bcbb8 (diff) |
xfrm: Const'ify xfrm_address_t args to xfrm_*_hash.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_state.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 555beddb63f0..0383d83555d5 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -50,8 +50,8 @@ static void xfrm_audit_state_replay(struct xfrm_state *x, | |||
50 | #endif /* CONFIG_AUDITSYSCALL */ | 50 | #endif /* CONFIG_AUDITSYSCALL */ |
51 | 51 | ||
52 | static inline unsigned int xfrm_dst_hash(struct net *net, | 52 | static inline unsigned int xfrm_dst_hash(struct net *net, |
53 | xfrm_address_t *daddr, | 53 | const xfrm_address_t *daddr, |
54 | xfrm_address_t *saddr, | 54 | const xfrm_address_t *saddr, |
55 | u32 reqid, | 55 | u32 reqid, |
56 | unsigned short family) | 56 | unsigned short family) |
57 | { | 57 | { |
@@ -59,15 +59,16 @@ static inline unsigned int xfrm_dst_hash(struct net *net, | |||
59 | } | 59 | } |
60 | 60 | ||
61 | static inline unsigned int xfrm_src_hash(struct net *net, | 61 | static inline unsigned int xfrm_src_hash(struct net *net, |
62 | xfrm_address_t *daddr, | 62 | const xfrm_address_t *daddr, |
63 | xfrm_address_t *saddr, | 63 | const xfrm_address_t *saddr, |
64 | unsigned short family) | 64 | unsigned short family) |
65 | { | 65 | { |
66 | return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); | 66 | return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); |
67 | } | 67 | } |
68 | 68 | ||
69 | static inline unsigned int | 69 | static inline unsigned int |
70 | xfrm_spi_hash(struct net *net, xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) | 70 | xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, |
71 | __be32 spi, u8 proto, unsigned short family) | ||
71 | { | 72 | { |
72 | return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); | 73 | return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); |
73 | } | 74 | } |