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

Commit 5e6039d8 authored by Al Viro's avatar Al Viro
Browse files

uaccess: move VERIFY_{READ,WRITE} definitions to linux/uaccess.h



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c1ae3cfa
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -20,9 +20,6 @@
#define KERNEL_DS	((mm_segment_t) { 0UL })
#define USER_DS		((mm_segment_t) { -0x40000000000UL })

#define VERIFY_READ	0
#define VERIFY_WRITE	1

#define get_fs()  (current_thread_info()->addr_limit)
#define get_ds()  (KERNEL_DS)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
+0 −3
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@
#define __put_user_unaligned __put_user
#endif

#define VERIFY_READ 0
#define VERIFY_WRITE 1

/*
 * The exception table consists of pairs of addresses: the first is the
 * address of an instruction that is allowed to fault, and the second is
+0 −3
Original line number Diff line number Diff line
@@ -36,9 +36,6 @@
#include <asm/memory.h>
#include <asm/compiler.h>

#define VERIFY_READ 0
#define VERIFY_WRITE 1

/*
 * The exception table consists of pairs of relative offsets: the first
 * is the relative offset to an instruction that is allowed to fault,
+0 −3
Original line number Diff line number Diff line
@@ -11,9 +11,6 @@
#include <linux/errno.h>
#include <linux/sched.h>

#define VERIFY_READ	0
#define VERIFY_WRITE	1

typedef struct {
	unsigned int is_user_space;
} mm_segment_t;
+0 −3
Original line number Diff line number Diff line
@@ -29,9 +29,6 @@ static inline void set_fs(mm_segment_t fs)

#define segment_eq(a, b) ((a) == (b))

#define VERIFY_READ	0
#define VERIFY_WRITE	1

#define access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size))

/*
Loading