[NET]: Annotate ip_vs_checksum_complete() and callers.
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Nov 2006 05:37:50 +0000 (21:37 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:23:37 +0000 (21:23 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_vs.h
net/ipv4/ipvs/ip_vs_core.c

index 903108e583f886431f4aa876c2cedf1adabd6a7d..fedea8db156a61199d968b1f7dd04dbb836b35a7 100644 (file)
@@ -988,7 +988,7 @@ extern int ip_vs_make_skb_writable(struct sk_buff **pskb, int len);
 extern void ip_vs_nat_icmp(struct sk_buff *skb, struct ip_vs_protocol *pp,
                struct ip_vs_conn *cp, int dir);
 
-extern u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset);
+extern __sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset);
 
 static inline u16 ip_vs_check_diff(u32 old, u32 new, u16 oldsum)
 {
index fac2dffd667203ad7561b5d4b3994a2c7dbd3e54..34257520a3a6b8132eb87af036382aea06f753f2 100644 (file)
@@ -536,7 +536,7 @@ static unsigned int ip_vs_post_routing(unsigned int hooknum,
        return NF_STOP;
 }
 
-u16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)
+__sum16 ip_vs_checksum_complete(struct sk_buff *skb, int offset)
 {
        return csum_fold(skb_checksum(skb, offset, skb->len - offset, 0));
 }