hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/powerpc/include/asm/checksum.h
....@@ -1,17 +1,11 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_POWERPC_CHECKSUM_H
23 #define _ASM_POWERPC_CHECKSUM_H
34 #ifdef __KERNEL__
45
56 /*
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
107 */
118
12
-#ifdef CONFIG_GENERIC_CSUM
13
-#include <asm-generic/checksum.h>
14
-#else
159 #include <linux/bitops.h>
1610 #include <linux/in6.h>
1711 /*
....@@ -24,19 +18,18 @@
2418 * Like csum_partial, this must be called with even lengths,
2519 * except for the last fragment.
2620 */
27
-extern __wsum csum_partial_copy_generic(const void *src, void *dst,
28
- int len, __wsum sum,
29
- int *src_err, int *dst_err);
21
+extern __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
3022
3123 #define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
3224 extern __wsum csum_and_copy_from_user(const void __user *src, void *dst,
33
- int len, __wsum sum, int *err_ptr);
25
+ int len);
3426 #define HAVE_CSUM_COPY_USER
3527 extern __wsum csum_and_copy_to_user(const void *src, void __user *dst,
36
- int len, __wsum sum, int *err_ptr);
28
+ int len);
3729
38
-#define csum_partial_copy_nocheck(src, dst, len, sum) \
39
- csum_partial_copy_generic((src), (dst), (len), (sum), NULL, NULL)
30
+#define _HAVE_ARCH_CSUM_AND_COPY
31
+#define csum_partial_copy_nocheck(src, dst, len) \
32
+ csum_partial_copy_generic((src), (dst), (len))
4033
4134
4235 /*
....@@ -217,6 +210,5 @@
217210 const struct in6_addr *daddr,
218211 __u32 len, __u8 proto, __wsum sum);
219212
220
-#endif
221213 #endif /* __KERNEL__ */
222214 #endif