Skip to content

Commit 03b2cbb

Browse files
Tomas Winklergregkh
authored andcommitted
mei: replace POLL* with EPOLL* for write queues.
Looks like during merging the bulk POLL* -> EPOLL* replacement missed the patch 'commit af336ca ("mei: limit the number of queued writes")' Fix sparse warning: drivers/misc/mei/main.c:602:13: warning: restricted __poll_t degrades to integer drivers/misc/mei/main.c:605:30: warning: invalid assignment: |= drivers/misc/mei/main.c:605:30: left side has type restricted __poll_t drivers/misc/mei/main.c:605:30: right side has type int Fixes: af336ca ("mei: limit the number of queued writes") Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6011002 commit 03b2cbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/misc/mei/main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,10 @@ static __poll_t mei_poll(struct file *file, poll_table *wait)
599599
mei_cl_read_start(cl, mei_cl_mtu(cl), file);
600600
}
601601

602-
if (req_events & (POLLOUT | POLLWRNORM)) {
602+
if (req_events & (EPOLLOUT | EPOLLWRNORM)) {
603603
poll_wait(file, &cl->tx_wait, wait);
604604
if (cl->tx_cb_queued < dev->tx_queue_limit)
605-
mask |= POLLOUT | POLLWRNORM;
605+
mask |= EPOLLOUT | EPOLLWRNORM;
606606
}
607607

608608
out:

0 commit comments

Comments
 (0)