From: Al Viro Date: Thu, 28 Sep 2006 01:46:32 +0000 (-0700) Subject: [XFRM]: addr_match() annotations X-Git-Tag: v2.6.19-rc1~858^2~40 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f19343fb19613539355296b23cbc08d1336b52d;p=linux-2.6 [XFRM]: addr_match() annotations Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 17e98c4bd8..b096e9058f 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -437,8 +437,8 @@ static inline void xfrm_state_hold(struct xfrm_state *x) static __inline__ int addr_match(void *token1, void *token2, int prefixlen) { - __u32 *a1 = token1; - __u32 *a2 = token2; + __be32 *a1 = token1; + __be32 *a2 = token2; int pdw; int pbi; @@ -450,7 +450,7 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen) return 0; if (pbi) { - __u32 mask; + __be32 mask; mask = htonl((0xffffffff) << (32 - pbi));