]> git.karo-electronics.de Git - linux-beck.git/commitdiff
microblaze: remove bad_user_access_length
authorArnd Bergmann <arnd@arndb.de>
Fri, 1 May 2009 13:36:13 +0000 (13:36 +0000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 May 2009 13:56:06 +0000 (15:56 +0200)
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>
arch/microblaze/include/asm/uaccess.h

index 5a3ffc308e127cd76fb099c9f410c774095f7436..a4e171d49d1510e7a3f06edc395bb512b24a5475 100644 (file)
@@ -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)                                   \
        ({                                                      \