[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnewsense-dev] [loongson-PATCH-v1 03/27] fix-error: incompatiable argum
From: |
wuzhangjin |
Subject: |
[Gnewsense-dev] [loongson-PATCH-v1 03/27] fix-error: incompatiable argument type of clear_user |
Date: |
Thu, 21 May 2009 05:50:01 +0800 |
From: Wu Zhangjin <address@hidden>
there are lots of warnings about the macro: clear_user in linux-mips.
the type of the second argument of access_ok should be (void __user *),
but there is an un-needed (unsigned long) conversion before __cl_addr,
so, remove the (unsigned long) will fix this problem.
Signed-off-by: Wu Zhangjin <address@hidden>
---
arch/mips/include/asm/uaccess.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h
index 42b9cec..cd32e9f 100644
--- a/arch/mips/include/asm/uaccess.h
+++ b/arch/mips/include/asm/uaccess.h
@@ -936,7 +936,7 @@ __clear_user(void __user *addr, __kernel_size_t size)
void __user * __cl_addr = (addr); \
unsigned long __cl_size = (n); \
if (__cl_size && access_ok(VERIFY_WRITE, \
- ((unsigned long)(__cl_addr)), __cl_size)) \
+ __cl_addr, __cl_size)) \
__cl_size = __clear_user(__cl_addr, __cl_size); \
__cl_size; \
})
--
1.6.2.1
- [Gnewsense-dev] [loongson-PATCH-v1 00/27] linux patches of loongson-based machines, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 01/27] fix-warning: incompatible argument type of pci_fixup_irqs, wuzhangjin, 2009/05/21
- Message not available
- Message not available
- [Gnewsense-dev] [loongson-PATCH-v1 02/27] fix-warning: incompatible argument type of virt_to_phys, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 04/27] change the naming methods, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 03/27] fix-error: incompatiable argument type of clear_user,
wuzhangjin <=
- [Gnewsense-dev] [loongson-PATCH-v1 05/27] remove reference to bonito64.h, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 09/27] enable Real Time Clock Support for fuloong(2e), wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 06/27] divide the files to the smallest logic unit, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 08/27] clean up the early printk support for fuloong(2e), wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 07/27] replace tons of magic numbers by understandable symbols, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 10/27] add loongson-specific cpu-feature-overrides.h, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 11/27] split the loongson-specific part out, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 12/27] add basic loongson-2f support, wuzhangjin, 2009/05/21
- [Gnewsense-dev] [loongson-PATCH-v1 13/27] add basic fuloong(2f) support, wuzhangjin, 2009/05/21