projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f17c70
)
fix return type of skb_checksum_complete()
author
Al Viro
<viro@ftp.linux.org.uk>
Sun, 15 Jul 2007 20:00:11 +0000
(21:00 +0100)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 15 Jul 2007 23:40:51 +0000
(16:40 -0700)
It returns __sum16, not unsigned int
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/skbuff.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/skbuff.h
b/include/linux/skbuff.h
index 9391e4a4c3447d53b73dba487255cab67ef24b6e..ce256438e6197e5557ef53edd9997594763e82d5 100644
(file)
--- 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);