Skip to contentSkip to conversation

mei: replace POLL* with EPOLL* for write queues.

char-misc Tomas Winkler 1 participant 1 message Sep 28, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Looks like during merging the bulk POLL* -> EPOLL* replacement missed the patch
'commit af336cabe083 ("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

Cc <[email protected]> #v4.17+
Fixes 'commit af336cabe083 ("mei: limit the number of queued writes")'
---
 drivers/misc/mei/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/mei/main.c +2 -2
index 4d77a6ae183a..87281b3695e6 100644
@@ -599,10 +599,10 @@ static __poll_t mei_poll(struct file *file, poll_table *wait)
 			mei_cl_read_start(cl, mei_cl_mtu(cl), file);
 	}
 
-	if (req_events & (POLLOUT | POLLWRNORM)) {
+	if (req_events & (EPOLLOUT | EPOLLWRNORM)) {
 		poll_wait(file, &cl->tx_wait, wait);
 		if (cl->tx_cb_queued < dev->tx_queue_limit)
-			mask |= POLLOUT | POLLWRNORM;
+			mask |= EPOLLOUT | EPOLLWRNORM;
 	}
 
 out:
Signature · 1 line
2.14.4