mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
make kernel-side POLL... arch-independent
mangle/demangle on the way to/from userland Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
69112736e2
commit
c71d227fc4
10 changed files with 125 additions and 8 deletions
|
|
@ -817,7 +817,7 @@ static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait,
|
|||
mask = POLLNVAL;
|
||||
if (f.file) {
|
||||
/* userland u16 ->events contains POLL... bitmap */
|
||||
__poll_t filter = (__force __poll_t)pollfd->events |
|
||||
__poll_t filter = demangle_poll(pollfd->events) |
|
||||
POLLERR | POLLHUP;
|
||||
mask = DEFAULT_POLLMASK;
|
||||
if (f.file->f_op->poll) {
|
||||
|
|
@ -833,7 +833,7 @@ static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait,
|
|||
}
|
||||
}
|
||||
/* ... and so does ->revents */
|
||||
pollfd->revents = (__force u16)mask;
|
||||
pollfd->revents = mangle_poll(mask);
|
||||
|
||||
return mask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue