Skip to content

Commit

Permalink
parisc: Define access_ok() as macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hdeller committed Feb 25, 2017
1 parent af640d1 commit 09b871f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/parisc/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09b871f

Please sign in to comment.