aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_hash.h')
-rw-r--r--net/xfrm/xfrm_hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_hash.h b/net/xfrm/xfrm_hash.h
index d3abb0b7dc62..6ac4e4f033ac 100644
--- a/net/xfrm/xfrm_hash.h
+++ b/net/xfrm/xfrm_hash.h
@@ -58,10 +58,10 @@ static inline unsigned __xfrm_src_hash(xfrm_address_t *saddr,
58} 58}
59 59
60static inline unsigned int 60static inline unsigned int
61__xfrm_spi_hash(xfrm_address_t *daddr, u32 spi, u8 proto, unsigned short family, 61__xfrm_spi_hash(xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family,
62 unsigned int hmask) 62 unsigned int hmask)
63{ 63{
64 unsigned int h = spi ^ proto; 64 unsigned int h = (__force u32)spi ^ proto;
65 switch (family) { 65 switch (family) {
66 case AF_INET: 66 case AF_INET:
67 h ^= __xfrm4_addr_hash(daddr); 67 h ^= __xfrm4_addr_hash(daddr);