diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-15 00:28:24 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:23:29 -0500 |
commit | 6b11687ef003ed595033da89643c8995676f929d (patch) | |
tree | f18b8e552e88aa213a24cd10bb4c67ba0bab8710 | |
parent | d6f5493c1a42b1203e5b0cb0507afd00bb2927bf (diff) |
[NET]: Annotate csum_tcpudp_magic() callers in net/*
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/tcp.h | 6 | ||||
-rw-r--r-- | net/ipv4/udp.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 363960872de0..826aaecdb994 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -807,9 +807,9 @@ static inline void tcp_update_wl(struct tcp_sock *tp, u32 ack, u32 seq) | |||
807 | /* | 807 | /* |
808 | * Calculate(/check) TCP checksum | 808 | * Calculate(/check) TCP checksum |
809 | */ | 809 | */ |
810 | static inline u16 tcp_v4_check(struct tcphdr *th, int len, | 810 | static inline __sum16 tcp_v4_check(struct tcphdr *th, int len, |
811 | unsigned long saddr, unsigned long daddr, | 811 | __be32 saddr, __be32 daddr, |
812 | unsigned long base) | 812 | __wsum base) |
813 | { | 813 | { |
814 | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); | 814 | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
815 | } | 815 | } |
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 98ba75096175..f9c4ed7207bb 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -414,8 +414,9 @@ static void udp_flush_pending_frames(struct sock *sk) | |||
414 | static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, | 414 | static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, |
415 | __be32 src, __be32 dst, int len ) | 415 | __be32 src, __be32 dst, int len ) |
416 | { | 416 | { |
417 | unsigned int csum = 0, offset; | 417 | unsigned int offset; |
418 | struct udphdr *uh = skb->h.uh; | 418 | struct udphdr *uh = skb->h.uh; |
419 | __wsum csum = 0; | ||
419 | 420 | ||
420 | if (skb_queue_len(&sk->sk_write_queue) == 1) { | 421 | if (skb_queue_len(&sk->sk_write_queue) == 1) { |
421 | /* | 422 | /* |