Commit 8f3675be authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

staging: greybus: loopback_test: fix poll-mask build breakage

A scripted conversion from userland POLL* to kernel EPOLL* constants
mistakingly replaced the poll flags in the loopback_test tool, which
therefore no longer builds.

Fixes: a9a08845 ("vfs: do bulk POLL* -> EPOLL* replacement")
Cc: stable <stable@vger.kernel.org>     # 4.16
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20200312110151.22028-2-johan@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac42c12d
...@@ -655,7 +655,7 @@ static int open_poll_files(struct loopback_test *t) ...@@ -655,7 +655,7 @@ static int open_poll_files(struct loopback_test *t)
goto err; goto err;
} }
read(t->fds[fds_idx].fd, &dummy, 1); read(t->fds[fds_idx].fd, &dummy, 1);
t->fds[fds_idx].events = EPOLLERR|EPOLLPRI; t->fds[fds_idx].events = POLLERR | POLLPRI;
t->fds[fds_idx].revents = 0; t->fds[fds_idx].revents = 0;
fds_idx++; fds_idx++;
} }
...@@ -748,7 +748,7 @@ static int wait_for_complete(struct loopback_test *t) ...@@ -748,7 +748,7 @@ static int wait_for_complete(struct loopback_test *t)
} }
for (i = 0; i < t->poll_count; i++) { for (i = 0; i < t->poll_count; i++) {
if (t->fds[i].revents & EPOLLPRI) { if (t->fds[i].revents & POLLPRI) {
/* Dummy read to clear the event */ /* Dummy read to clear the event */
read(t->fds[i].fd, &dummy, 1); read(t->fds[i].fd, &dummy, 1);
number_of_events++; number_of_events++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment