aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/metag/include/asm/checksum.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/metag/include/asm/checksum.h b/arch/metag/include/asm/checksum.h
index 999bf761a732..08dd1cc65799 100644
--- a/arch/metag/include/asm/checksum.h
+++ b/arch/metag/include/asm/checksum.h
@@ -64,7 +64,8 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
64 __wsum sum) 64 __wsum sum)
65{ 65{
66 unsigned long len_proto = (proto + len) << 8; 66 unsigned long len_proto = (proto + len) << 8;
67 asm ("ADD %0, %0, %1\n" 67 asm ("ADDS %0, %0, %1\n"
68 "ADDCS %0, %0, #1\n"
68 "ADDS %0, %0, %2\n" 69 "ADDS %0, %0, %2\n"
69 "ADDCS %0, %0, #1\n" 70 "ADDCS %0, %0, #1\n"
70 "ADDS %0, %0, %3\n" 71 "ADDS %0, %0, %3\n"