Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272265
b: refs/heads/master
c: 4e29198
h: refs/heads/master
i:
  272263: e890d01
v: v3
  • Loading branch information
Linas Vepstas authored and Linus Torvalds committed Nov 1, 2011
1 parent 04d50de commit 444a923
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f4567cf4ff586e318aa1bc586a69570d64b162a
refs/heads/master: 4e29198e1cd7728c30c96a8483a6068c71b34e4e
4 changes: 4 additions & 0 deletions trunk/include/asm-generic/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ extern __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum)
extern __wsum csum_partial_copy_from_user(const void __user *src, void *dst,
int len, __wsum sum, int *csum_err);

#ifndef csum_partial_copy_nocheck
#define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy((src), (dst), (len), (sum))
#endif

/*
* This is a version of ip_compute_csum() optimized for IP headers,
Expand Down Expand Up @@ -63,12 +65,14 @@ csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len,
unsigned short proto, __wsum sum);
#endif

#ifndef csum_tcpudp_magic
static inline __sum16
csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len,
unsigned short proto, __wsum sum)
{
return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
}
#endif

/*
* this routine is used for miscellaneous IP-like checksums, mainly
Expand Down

0 comments on commit 444a923

Please sign in to comment.