diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-05-01 13:36:13 +0000 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-21 15:56:06 +0200 |
commit | 838d2406ee62595c1b40d1d03b48bc9a2102258b (patch) | |
tree | 990678285ba8d280556c7c89cf708a7b46470099 /arch/microblaze/include/asm/uaccess.h | |
parent | bb09791344d02c8caff596dc084b1542dcb70efe (diff) | |
download | blackbird-obmc-linux-838d2406ee62595c1b40d1d03b48bc9a2102258b.tar.gz blackbird-obmc-linux-838d2406ee62595c1b40d1d03b48bc9a2102258b.zip |
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>
Diffstat (limited to 'arch/microblaze/include/asm/uaccess.h')
-rw-r--r-- | arch/microblaze/include/asm/uaccess.h | 7 |
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); #define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0) #define __access_ok(add, size) (__range_ok((addr), (size)) == 0) -extern inline int bad_user_access_length(void) -{ - return 0; -} +/* Undefined function to trigger linker error */ +extern int bad_user_access_length(void); + /* FIXME this is function for optimalization -> memcpy */ #define __get_user(var, ptr) \ ({ \ |