hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/c6x/lib/checksum.c
....@@ -1,36 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * This program is free software; you can redistribute it and/or
3
- * modify it under the terms of the GNU General Public License
4
- * as published by the Free Software Foundation; either version
5
- * 2 of the License, or (at your option) any later version.
63 */
74 #include <linux/module.h>
85 #include <net/checksum.h>
96
10
-#include <asm/byteorder.h>
11
-
12
-/*
13
- * copy from fs while checksumming, otherwise like csum_partial
14
- */
15
-__wsum
16
-csum_partial_copy_from_user(const void __user *src, void *dst, int len,
17
- __wsum sum, int *csum_err)
18
-{
19
- int missing;
20
-
21
- missing = __copy_from_user(dst, src, len);
22
- if (missing) {
23
- memset(dst + len - missing, 0, missing);
24
- *csum_err = -EFAULT;
25
- } else
26
- *csum_err = 0;
27
-
28
- return csum_partial(dst, len, sum);
29
-}
30
-EXPORT_SYMBOL(csum_partial_copy_from_user);
31
-
327 /* These are from csum_64plus.S */
338 EXPORT_SYMBOL(csum_partial);
34
-EXPORT_SYMBOL(csum_partial_copy);
9
+EXPORT_SYMBOL(csum_partial_copy_nocheck);
3510 EXPORT_SYMBOL(ip_compute_csum);
3611 EXPORT_SYMBOL(ip_fast_csum);