Skip to content

Commit f1bfd71

Browse files
Christoph Hellwigdavem330
authored andcommitted
arch, net: remove the last csum_partial_copy() leftovers
Most of the tree only uses and implements csum_partial_copy_nocheck, but the c6x and lib/checksum.c implement a csum_partial_copy that isn't used anywere except to define csum_partial_copy. Get rid of this pointless alias. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cebd2ca commit f1bfd71

5 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎arch/c6x/lib/checksum.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
/* These are from csum_64plus.S */
88
EXPORT_SYMBOL(csum_partial);
9-
EXPORT_SYMBOL(csum_partial_copy);
9+
EXPORT_SYMBOL(csum_partial_copy_nocheck);
1010
EXPORT_SYMBOL(ip_compute_csum);
1111
EXPORT_SYMBOL(ip_fast_csum);

‎arch/c6x/lib/csum_64plus.S‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include <linux/linkage.h>
1111

1212
;
13-
;unsigned int csum_partial_copy(const char *src, char * dst,
14-
; int len, int sum)
13+
;unsigned int csum_partial_copy_nocheck(const char *src, char * dst,
14+
; int len, int sum)
1515
;
1616
; A4: src
1717
; B4: dst
@@ -21,7 +21,7 @@
2121
;
2222

2323
.text
24-
ENTRY(csum_partial_copy)
24+
ENTRY(csum_partial_copy_nocheck)
2525
MVC .S2 ILC,B30
2626

2727
MV .D1X B6,A31 ; given csum
@@ -149,7 +149,7 @@ L10: ADD .D1 A31,A9,A9
149149

150150
BNOP .S2 B3,4
151151
MVC .S2 B30,ILC
152-
ENDPROC(csum_partial_copy)
152+
ENDPROC(csum_partial_copy_nocheck)
153153

154154
;
155155
;unsigned short

‎arch/nios2/include/asm/checksum.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212

1313
/* Take these from lib/checksum.c */
1414
extern __wsum csum_partial(const void *buff, int len, __wsum sum);
15-
extern __wsum csum_partial_copy(const void *src, void *dst, int len,
15+
__wsum csum_partial_copy_nocheck(const void *src, void *dst, int len,
1616
__wsum sum);
17-
#define csum_partial_copy_nocheck(src, dst, len, sum) \
18-
csum_partial_copy((src), (dst), (len), (sum))
17+
#define csum_partial_copy_nocheck csum_partial_copy_nocheck
1918

2019
extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
2120
extern __sum16 ip_compute_csum(const void *buff, int len);

‎include/asm-generic/checksum.h‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ extern __wsum csum_partial(const void *buff, int len, __wsum sum);
2323
* here even more important to align src and dst on a 32-bit (or even
2424
* better 64-bit) boundary
2525
*/
26-
extern __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum);
27-
2826
#ifndef csum_partial_copy_nocheck
29-
#define csum_partial_copy_nocheck(src, dst, len, sum) \
30-
csum_partial_copy((src), (dst), (len), (sum))
27+
__wsum csum_partial_copy_nocheck(const void *src, void *dst, int len,
28+
__wsum sum);
3129
#endif
3230

3331
#ifndef ip_fast_csum

‎lib/checksum.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ EXPORT_SYMBOL(ip_compute_csum);
149149
* copy from ds while checksumming, otherwise like csum_partial
150150
*/
151151
__wsum
152-
csum_partial_copy(const void *src, void *dst, int len, __wsum sum)
152+
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
153153
{
154154
memcpy(dst, src, len);
155155
return csum_partial(dst, len, sum);
156156
}
157-
EXPORT_SYMBOL(csum_partial_copy);
157+
EXPORT_SYMBOL(csum_partial_copy_nocheck);
158158

159159
#ifndef csum_tcpudp_nofold
160160
static inline u32 from64to32(u64 x)

0 commit comments

Comments
 (0)