aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-05-01 09:36:13 -0400
committerMichal Simek <monstr@monstr.eu>2009-05-21 09:56:06 -0400
commit838d2406ee62595c1b40d1d03b48bc9a2102258b (patch)
tree990678285ba8d280556c7c89cf708a7b46470099
parentbb09791344d02c8caff596dc084b1542dcb70efe (diff)
microblaze: remove bad_user_access_length
This function was actually causing harm, by hiding errors about invalid sized get_user/put_user accesses. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r--arch/microblaze/include/asm/uaccess.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h
index 5a3ffc308e12..a4e171d49d15 100644
--- a/arch/microblaze/include/asm/uaccess.h
+++ b/arch/microblaze/include/asm/uaccess.h
@@ -34,10 +34,9 @@ extern int ___range_ok(unsigned long addr, unsigned long size);
34#define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0) 34#define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0)
35#define __access_ok(add, size) (__range_ok((addr), (size)) == 0) 35#define __access_ok(add, size) (__range_ok((addr), (size)) == 0)
36 36
37extern inline int bad_user_access_length(void) 37/* Undefined function to trigger linker error */
38{ 38extern int bad_user_access_length(void);
39 return 0; 39
40}
41/* FIXME this is function for optimalization -> memcpy */ 40/* FIXME this is function for optimalization -> memcpy */
42#define __get_user(var, ptr) \ 41#define __get_user(var, ptr) \
43 ({ \ 42 ({ \