diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-05-18 20:47:07 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 13:28:48 -0700 |
commit | 70f9cac5e077df8fc5a613d84e2e13005a6ff841 (patch) | |
tree | 3497ea91f1b6dc60fb2131777dd2f5c6952195ef /include/asm-m68k | |
parent | 29e92f483603d97dd1d2bafcb32101287dfac4ad (diff) | |
download | linux-stable-70f9cac5e077df8fc5a613d84e2e13005a6ff841.tar.gz linux-stable-70f9cac5e077df8fc5a613d84e2e13005a6ff841.tar.bz2 linux-stable-70f9cac5e077df8fc5a613d84e2e13005a6ff841.zip |
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>
Diffstat (limited to 'include/asm-m68k')
-rw-r--r-- | include/asm-m68k/uaccess.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h index 5c1264cf0c65..7107f3fbdbb6 100644 --- a/include/asm-m68k/uaccess.h +++ b/include/asm-m68k/uaccess.h @@ -14,7 +14,11 @@ #define VERIFY_WRITE 1 /* We let the MMU do all checking */ -#define access_ok(type,addr,size) 1 +static inline int access_ok(int type, const void __user *addr, + unsigned long size) +{ + return 1; +} /* * The exception table consists of pairs of addresses: the first is the |