summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2008-04-09 10:21:42 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-04-09 10:21:42 +1000
commit35f5512aeaea58ed2e2caf2ea7439b6a577748d0 (patch)
treee41bb01bbb520b19e92ca0096fd7d613b06dcc4b
parentf93afa546561d887b83837f6b536fb442dad1914 (diff)
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>
-rw-r--r--include/asm-m68k/uaccess.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-m68k/uaccess.h b/include/asm-m68k/uaccess.h
index 5c1264cf0c65..85a296b93a90 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