mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[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>
This commit is contained in:
parent
d6f5493c1a
commit
6b11687ef0
2 changed files with 5 additions and 4 deletions
|
@ -807,9 +807,9 @@ static inline void tcp_update_wl(struct tcp_sock *tp, u32 ack, u32 seq)
|
|||
/*
|
||||
* Calculate(/check) TCP checksum
|
||||
*/
|
||||
static inline u16 tcp_v4_check(struct tcphdr *th, int len,
|
||||
unsigned long saddr, unsigned long daddr,
|
||||
unsigned long base)
|
||||
static inline __sum16 tcp_v4_check(struct tcphdr *th, int len,
|
||||
__be32 saddr, __be32 daddr,
|
||||
__wsum base)
|
||||
{
|
||||
return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue