Skip to content

Commit 09b871f

Browse files
committed
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 <[email protected]>
1 parent af640d1 commit 09b871f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/parisc/include/asm/uaccess.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@
3232
* that put_user is the same as __put_user, etc.
3333
*/
3434

35-
static inline long access_ok(int type, const void __user * addr,
36-
unsigned long size)
37-
{
38-
return 1;
39-
}
35+
#define access_ok(type, uaddr, size) (1)
4036

4137
#define put_user __put_user
4238
#define get_user __get_user

0 commit comments

Comments
 (0)