瀏覽代碼

parisc: Define access_ok() as macro

Define access_ok() as macro instead of static function. This fixes build
warnings in code where the second parameter is given as unsigned long.

Signed-off-by: Helge Deller <deller@gmx.de>
Helge Deller 8 年之前
父節點
當前提交
09b871ffd4
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      arch/parisc/include/asm/uaccess.h

+ 1 - 5
arch/parisc/include/asm/uaccess.h

@@ -32,11 +32,7 @@
  * that put_user is the same as __put_user, etc.
  */
 
-static inline long access_ok(int type, const void __user * addr,
-		unsigned long size)
-{
-	return 1;
-}
+#define access_ok(type, uaddr, size) (1)
 
 #define put_user __put_user
 #define get_user __get_user