提交 5f19343f 编写于 作者: A Al Viro 提交者: David S. Miller

[XFRM]: addr_match() annotations

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8f83f23e
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册