* [PATCH] fix return type of skb_checksum_complete()
@ 2007-07-15 20:00 Al Viro
2007-07-16 0:40 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2007-07-15 20:00 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, davem
It returns __sum16, not unsigned int
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
include/linux/skbuff.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 9391e4a..ce25643 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1639,7 +1639,7 @@ static inline int skb_csum_unnecessary(const struct sk_buff *skb)
* if skb->ip_summed is CHECKSUM_UNNECESSARY which indicates that the
* hardware has already verified the correctness of the checksum.
*/
-static inline unsigned int skb_checksum_complete(struct sk_buff *skb)
+static inline __sum16 skb_checksum_complete(struct sk_buff *skb)
{
return skb_csum_unnecessary(skb) ?
0 : __skb_checksum_complete(skb);
--
1.5.3.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix return type of skb_checksum_complete()
2007-07-15 20:00 [PATCH] fix return type of skb_checksum_complete() Al Viro
@ 2007-07-16 0:40 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-07-16 0:40 UTC (permalink / raw)
To: viro; +Cc: torvalds, linux-kernel
From: Al Viro <viro@ftp.linux.org.uk>
Date: Sun, 15 Jul 2007 21:00:11 +0100
>
> It returns __sum16, not unsigned int
>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-16 0:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-15 20:00 [PATCH] fix return type of skb_checksum_complete() Al Viro
2007-07-16 0:40 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox