diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 6 |
1 files changed, 3 insertions, 3 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 | } |