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

[PATCH] m68knommu: correct prototype args in checksum.h

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>

authored by

Greg Ungerer and committed by
Linus Torvalds
df28f34b 42ae766f

+4 -3
+4 -3
include/asm-m68knommu/checksum.h
··· 25 25 * better 64-bit) boundary 26 26 */ 27 27 28 - unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum); 28 + unsigned int csum_partial_copy(const unsigned char *src, unsigned char *dst, 29 + int len, int sum); 29 30 30 31 31 32 /* ··· 36 35 * better 64-bit) boundary 37 36 */ 38 37 39 - extern unsigned int csum_partial_copy_from_user(const char *src, char *dst, 40 - int len, int sum, int *csum_err); 38 + extern unsigned int csum_partial_copy_from_user(const unsigned char *src, 39 + unsigned char *dst, int len, int sum, int *csum_err); 41 40 42 41 #define csum_partial_copy_nocheck(src, dst, len, sum) \ 43 42 csum_partial_copy((src), (dst), (len), (sum))