Commit 838d2406 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Michal Simek

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent bb097913
...@@ -34,10 +34,9 @@ extern int ___range_ok(unsigned long addr, unsigned long size); ...@@ -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(type, addr, size) (__range_ok((addr), (size)) == 0)
#define __access_ok(add, size) (__range_ok((addr), (size)) == 0) #define __access_ok(add, size) (__range_ok((addr), (size)) == 0)
extern inline int bad_user_access_length(void) /* Undefined function to trigger linker error */
{ extern int bad_user_access_length(void);
return 0;
}
/* FIXME this is function for optimalization -> memcpy */ /* FIXME this is function for optimalization -> memcpy */
#define __get_user(var, ptr) \ #define __get_user(var, ptr) \
({ \ ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment