Commit 70f9cac5e077df8fc5a613d84e2e13005a6ff841
Committed by
Linus Torvalds
1 parent
29e92f4836
m68k: Convert access_ok() to an inline function
Convert access_ok() from a macro to an inline function, so the compiler no longer complains about unused variables: fs/read_write.c: In function 'rw_copy_check_uvector': fs/read_write.c:556: warning: unused variable 'buf' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
include/asm-m68k/uaccess.h
... | ... | @@ -14,7 +14,11 @@ |
14 | 14 | #define VERIFY_WRITE 1 |
15 | 15 | |
16 | 16 | /* We let the MMU do all checking */ |
17 | -#define access_ok(type,addr,size) 1 | |
17 | +static inline int access_ok(int type, const void __user *addr, | |
18 | + unsigned long size) | |
19 | +{ | |
20 | + return 1; | |
21 | +} | |
18 | 22 | |
19 | 23 | /* |
20 | 24 | * The exception table consists of pairs of addresses: the first is the |