summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-14 21:40:42 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:23:38 -0800
commitb51655b958dfb1176bfcf99466231fdbef8751ff (patch)
treea53d0ec00d8db4169ba8c1c487fffbd34d6dde03 /net/core
parentb1550f221255f7dd06048d832bf0f3d166840e1c (diff)
downloadlinux-b51655b958dfb1176bfcf99466231fdbef8751ff.tar.gz
linux-b51655b958dfb1176bfcf99466231fdbef8751ff.tar.bz2
linux-b51655b958dfb1176bfcf99466231fdbef8751ff.zip
[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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/datagram.c2
-rw-r--r--net/core/netpoll.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c
index 0d9c9bac4006..797fdd4352ce 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -411,7 +411,7 @@ fault:
return -EFAULT;
}
-unsigned int __skb_checksum_complete(struct sk_buff *skb)
+__sum16 __skb_checksum_complete(struct sk_buff *skb)
{
__sum16 sum;
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 26ee1791aa02..8be3681d3d80 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -77,8 +77,8 @@ static void queue_process(void *p)
}
}
-static int checksum_udp(struct sk_buff *skb, struct udphdr *uh,
- unsigned short ulen, __be32 saddr, __be32 daddr)
+static __sum16 checksum_udp(struct sk_buff *skb, struct udphdr *uh,
+ unsigned short ulen, __be32 saddr, __be32 daddr)
{
__wsum psum;