summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/uaccess.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-05-01 13:36:13 +0000
committerMichal Simek <monstr@monstr.eu>2009-05-21 15:56:06 +0200
commit838d2406ee62595c1b40d1d03b48bc9a2102258b (patch)
tree990678285ba8d280556c7c89cf708a7b46470099 /arch/microblaze/include/asm/uaccess.h
parentbb09791344d02c8caff596dc084b1542dcb70efe (diff)
downloadblackbird-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.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);
#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) \
({ \
OpenPOWER on IntegriCloud