mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[NET]: Annotate __skb_checksum_complete() and friends.
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
b1550f2212
commit
b51655b958
13 changed files with 22 additions and 22 deletions
|
|
@ -814,7 +814,7 @@ static inline __sum16 tcp_v4_check(struct tcphdr *th, int len,
|
|||
return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base);
|
||||
}
|
||||
|
||||
static inline int __tcp_checksum_complete(struct sk_buff *skb)
|
||||
static inline __sum16 __tcp_checksum_complete(struct sk_buff *skb)
|
||||
{
|
||||
return __skb_checksum_complete(skb);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,15 +69,15 @@ struct sk_buff;
|
|||
/*
|
||||
* Generic checksumming routines for UDP(-Lite) v4 and v6
|
||||
*/
|
||||
static inline u16 __udp_lib_checksum_complete(struct sk_buff *skb)
|
||||
static inline __sum16 __udp_lib_checksum_complete(struct sk_buff *skb)
|
||||
{
|
||||
if (! UDP_SKB_CB(skb)->partial_cov)
|
||||
return __skb_checksum_complete(skb);
|
||||
return csum_fold(skb_checksum(skb, 0, UDP_SKB_CB(skb)->cscov,
|
||||
skb->csum));
|
||||
return csum_fold(skb_checksum(skb, 0, UDP_SKB_CB(skb)->cscov,
|
||||
skb->csum));
|
||||
}
|
||||
|
||||
static __inline__ int udp_lib_checksum_complete(struct sk_buff *skb)
|
||||
static inline __sum16 udp_lib_checksum_complete(struct sk_buff *skb)
|
||||
{
|
||||
return skb->ip_summed != CHECKSUM_UNNECESSARY &&
|
||||
__udp_lib_checksum_complete(skb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue