Skip to content

Commit 8f3675b

Browse files
jhovoldgregkh
authored andcommitted
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: a9a0884 ("vfs: do bulk POLL* -> EPOLL* replacement") Cc: stable <[email protected]> # 4.16 Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ac42c12 commit 8f3675b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/greybus/tools/loopback_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static int open_poll_files(struct loopback_test *t)
655655
goto err;
656656
}
657657
read(t->fds[fds_idx].fd, &dummy, 1);
658-
t->fds[fds_idx].events = EPOLLERR|EPOLLPRI;
658+
t->fds[fds_idx].events = POLLERR | POLLPRI;
659659
t->fds[fds_idx].revents = 0;
660660
fds_idx++;
661661
}
@@ -748,7 +748,7 @@ static int wait_for_complete(struct loopback_test *t)
748748
}
749749

750750
for (i = 0; i < t->poll_count; i++) {
751-
if (t->fds[i].revents & EPOLLPRI) {
751+
if (t->fds[i].revents & POLLPRI) {
752752
/* Dummy read to clear the event */
753753
read(t->fds[i].fd, &dummy, 1);
754754
number_of_events++;

0 commit comments

Comments
 (0)