diff options
| author | Pawel Sikora <pluto@pld-linux.org> | 2005-01-14 23:33:46 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-14 23:33:46 -0800 |
| commit | 96eddffbc8a252ddc627ff175165647bb1f0bf88 (patch) | |
| tree | f1fd3309b7e0f9fff1501b7c0cc140a36e296b99 /include/net | |
| parent | df8ede406fba42504736202586b0c06e7fb7da4b (diff) | |
[PATCH] csum_and_copy_from_user gcc4 warning fixes
This patch kills tons of gcc4 warnings:
pointer targets in passing argument 2 of 'csum_and_copy_from_user' differ in signedness
From: Hirokazu Takata <takata@linux-m32r.org>
* include/asm-m32r/checksum.h: build fix
* arch/m32r/lib/csum_partial_copy.c:
- update comment
- cosmetic changes: change indentation
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/checksum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/checksum.h b/include/net/checksum.h index 43f40235114e..bd570858fada 100644 --- a/include/net/checksum.h +++ b/include/net/checksum.h @@ -27,7 +27,7 @@ #ifndef _HAVE_ARCH_COPY_AND_CSUM_FROM_USER static inline -unsigned int csum_and_copy_from_user (const char __user *src, char *dst, +unsigned int csum_and_copy_from_user (const unsigned char __user *src, unsigned char *dst, int len, int sum, int *err_ptr) { if (verify_area(VERIFY_READ, src, len) == 0) @@ -42,7 +42,7 @@ unsigned int csum_and_copy_from_user (const char __user *src, char *dst, #ifndef HAVE_CSUM_COPY_USER static __inline__ unsigned int csum_and_copy_to_user -(const char *src, char __user *dst, int len, unsigned int sum, int *err_ptr) +(const unsigned char *src, unsigned char __user *dst, int len, unsigned int sum, int *err_ptr) { sum = csum_partial(src, len, sum); |
