mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
futex: move FUTEX2_VALID_MASK to futex.h
We need this for validating the futex2 flags outside of the normal futex syscalls. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
52e856c387
commit
3b07815954
2 changed files with 2 additions and 2 deletions
|
@ -52,6 +52,8 @@ static inline unsigned int futex_to_flags(unsigned int op)
|
|||
return flags;
|
||||
}
|
||||
|
||||
#define FUTEX2_VALID_MASK (FUTEX2_SIZE_MASK | FUTEX2_PRIVATE)
|
||||
|
||||
/* FUTEX2_ to FLAGS_ */
|
||||
static inline unsigned int futex2_to_flags(unsigned int flags2)
|
||||
{
|
||||
|
|
|
@ -179,8 +179,6 @@ SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val,
|
|||
return do_futex(uaddr, op, val, tp, uaddr2, (unsigned long)utime, val3);
|
||||
}
|
||||
|
||||
#define FUTEX2_VALID_MASK (FUTEX2_SIZE_MASK | FUTEX2_PRIVATE)
|
||||
|
||||
/**
|
||||
* futex_parse_waitv - Parse a waitv array from userspace
|
||||
* @futexv: Kernel side list of waiters to be filled
|
||||
|
|
Loading…
Add table
Reference in a new issue