Skip to content

Commit

Permalink
[PATCH] m68knommu: correct prototype args in checksum.h
Browse files Browse the repository at this point in the history
Bring arg types for csum_partial_copy and csum_paritial_copy_from_user
prototypes into line with their actual implementation.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Sep 12, 2005
1 parent 42ae766 commit df28f34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/asm-m68knommu/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum)
* better 64-bit) boundary
*/

unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum);
unsigned int csum_partial_copy(const unsigned char *src, unsigned char *dst,
int len, int sum);


/*
Expand All @@ -35,8 +36,8 @@ unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum);
* better 64-bit) boundary
*/

extern unsigned int csum_partial_copy_from_user(const char *src, char *dst,
int len, int sum, int *csum_err);
extern unsigned int csum_partial_copy_from_user(const unsigned char *src,
unsigned char *dst, int len, int sum, int *csum_err);

#define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy((src), (dst), (len), (sum))
Expand Down

0 comments on commit df28f34

Please sign in to comment.