netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] fix up generic csum_ipv6_magic function prototype
@ 2006-11-09  2:02 Chen, Kenneth W
  2006-11-09  7:00 ` David Miller
  0 siblings, 1 reply; 9+ messages in thread
From: Chen, Kenneth W @ 2006-11-09  2:02 UTC (permalink / raw)
  To: 'Andrew Morton', 'Jeff Garzik', davem
  Cc: 'Linux Kernel Mailing List', 'NetDev'

The generic version of csum_ipv6_magic has the len argument declared as
__u16, while most arch dependent version declare it as __u32.  After
looking at the call site of this function, I come up to a conclusion
that __u32 is a better match with the actual usage.

Hence, patch to change argument type for greater consistency.


Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>


---

asm-m32r and asm-parisc both have it declared as __u16. I think it is a
copy-n-paste error and needs to be fixed by arch maintainer, I hope.



--- ./include/net/ip6_checksum.h.orig	2006-11-08 18:49:50.000000000 -0800
+++ ./include/net/ip6_checksum.h	2006-11-08 18:50:04.000000000 -0800
@@ -36,7 +36,7 @@
 
 static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
 						     struct in6_addr *daddr,
-						     __u16 len,
+						     __u32 len,
 						     unsigned short proto,
 						     unsigned int csum) 
 {


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-11-14  0:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-09  2:02 [patch] fix up generic csum_ipv6_magic function prototype Chen, Kenneth W
2006-11-09  7:00 ` David Miller
2006-11-09  7:22   ` Al Viro
2006-11-09  7:55     ` David Miller
2006-11-13  8:52       ` Al Viro
2006-11-13  9:12         ` Russell King
2006-11-13  9:25           ` Al Viro
2006-11-13  9:37         ` Andi Kleen
2006-11-14  0:16         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).