m68k csum_partial_copy_* (was: Re: [PATCH] csum_and_copy_from_user gcc4 warning fixes)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 m68k csum_partial_copy_* (was: Re: [PATCH] csum_and_copy_from_user gcc4 warning fixes)
Quoted 5 lines · Linux Kernel Mailing List
ChangeSet 1.2408, 2005/01/15 15:33:46-08:00, [email protected]
[PATCH]
csum_and_copy_from_usergcc4 warning fixesThis patch kills tons of gcc4 warnings:
You forgot to update include/asm-m68k/checksum.h. Here's a fix:
include/asm-m68k/checksum.h +8 -5
@@ -25,11 +25,14 @@ unsigned int csum_partial(const unsigned* 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_nocheck (const char *src,char *dst, -int len,int sum); +extern unsigned int csum_partial_copy_from_user (const unsigned char *src, +unsigned char *dst, +int len,int sum, +int *csum_err); + +extern unsigned int csum_partial_copy_nocheck (const unsigned char *src, +unsigned char *dst,int len, +int sum);/* * This is a version of ip_compute_csum() optimized for IP headers,
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds