Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09b871ff authored by Helge Deller's avatar Helge Deller
Browse files

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: default avatarHelge Deller <deller@gmx.de>
parent af640d17
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -32,11 +32,7 @@
 * that put_user is the same as __put_user, etc.
 * that put_user is the same as __put_user, etc.
 */
 */


static inline long access_ok(int type, const void __user * addr,
#define access_ok(type, uaddr, size) (1)
		unsigned long size)
{
	return 1;
}


#define put_user __put_user
#define put_user __put_user
#define get_user __get_user
#define get_user __get_user