[PATCH] m68k csum_partial_copy_* (was: Re: [PATCH] csum_and_copy_from_usergcc4 warning fixes)

From: Geert Uytterhoeven
Date: Tue Jan 25 2005 - 01:59:07 EST


On Sat, 15 Jan 2005, Linux Kernel Mailing List wrote:
> ChangeSet 1.2408, 2005/01/15 15:33:46-08:00, pluto@xxxxxxxxxxxxx
>
> [PATCH] csum_and_copy_from_user gcc4 warning fixes
>
> This patch kills tons of gcc4 warnings:

You forgot to update include/asm-m68k/checksum.h. Here's a fix:

--- linux-2.6.11-rc2/include/asm-m68k/checksum.h 2004-05-24 11:13:52.000000000 +0200
+++ linux-m68k-2.6.11-rc2/include/asm-m68k/checksum.h 2005-01-24 14:58:28.000000000 +0100
@@ -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 -- geert@xxxxxxxxxxxxxx

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/