Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Use <asm-generic/checksum.h>

Right now the MIPS <asm/checksum.h> still overrides all functions. This
will change in the future.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+7
+7
arch/mips/include/asm/checksum.h
··· 99 99 */ 100 100 __wsum csum_partial_copy_nocheck(const void *src, void *dst, 101 101 int len, __wsum sum); 102 + #define csum_partial_copy_nocheck csum_partial_copy_nocheck 102 103 103 104 /* 104 105 * Fold a partial checksum without adding pseudo headers ··· 115 114 116 115 return (__force __sum16)~sum; 117 116 } 117 + #define csum_fold csum_fold 118 118 119 119 /* 120 120 * This is a version of ip_compute_csum() optimized for IP headers, ··· 154 152 155 153 return csum_fold(csum); 156 154 } 155 + #define ip_fast_csum ip_fast_csum 157 156 158 157 static inline __wsum csum_tcpudp_nofold(__be32 saddr, 159 158 __be32 daddr, unsigned short len, unsigned short proto, ··· 197 194 198 195 return sum; 199 196 } 197 + #define csum_tcpudp_nofold csum_tcpudp_nofold 200 198 201 199 /* 202 200 * computes the checksum of the TCP/UDP pseudo-header ··· 210 206 { 211 207 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); 212 208 } 209 + #define csum_tcpudp_magic csum_tcpudp_magic 213 210 214 211 /* 215 212 * this routine is used for miscellaneous IP-like checksums, mainly ··· 285 280 286 281 return csum_fold(sum); 287 282 } 283 + 284 + #include <asm-generic/checksum.h> 288 285 289 286 #endif /* _ASM_CHECKSUM_H */