projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07064c6
)
x86_64: csum_add for x86_64
author
Tom Herbert
<therbert@google.com>
Fri, 2 May 2014 23:28:15 +0000
(16:28 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 5 May 2014 19:26:29 +0000
(15:26 -0400)
Add csum_add function for x86_64.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/include/asm/checksum_64.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/checksum_64.h
b/arch/x86/include/asm/checksum_64.h
index
e6fd8a0
..
3581761
100644
(file)
--- a/
arch/x86/include/asm/checksum_64.h
+++ b/
arch/x86/include/asm/checksum_64.h
@@
-188,4
+188,11
@@
static inline unsigned add32_with_carry(unsigned a, unsigned b)
return a;
}
+#define HAVE_ARCH_CSUM_ADD
+static inline __wsum csum_add(__wsum csum, __wsum addend)
+{
+ return (__force __wsum)add32_with_carry((__force unsigned)csum,
+ (__force unsigned)addend);
+}
+
#endif /* _ASM_X86_CHECKSUM_64_H */