summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-03 22:25:56 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-27 16:19:53 -0500
commite6c8adca20ba459dd88057ca74232bf9f1045075 (patch)
tree708ae6987fcd37a5a757825aeb84c74843809999 /drivers/vhost
parenta3f8683bf7d5e6254fe68f5c5d3585e27eea8ed0 (diff)
anntotate the places where ->poll() return values go
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/vhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 33ac2b186b85..c18e70bd0466 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -203,7 +203,7 @@ EXPORT_SYMBOL_GPL(vhost_poll_init);
203 * keep a reference to a file until after vhost_poll_stop is called. */ 203 * keep a reference to a file until after vhost_poll_stop is called. */
204int vhost_poll_start(struct vhost_poll *poll, struct file *file) 204int vhost_poll_start(struct vhost_poll *poll, struct file *file)
205{ 205{
206 unsigned long mask; 206 __poll_t mask;
207 int ret = 0; 207 int ret = 0;
208 208
209 if (poll->wqh) 209 if (poll->wqh)
@@ -211,7 +211,7 @@ int vhost_poll_start(struct vhost_poll *poll, struct file *file)
211 211
212 mask = file->f_op->poll(file, &poll->table); 212 mask = file->f_op->poll(file, &poll->table);
213 if (mask) 213 if (mask)
214 vhost_poll_wakeup(&poll->wait, 0, 0, (void *)mask); 214 vhost_poll_wakeup(&poll->wait, 0, 0, (void *)(uintptr_t)mask);
215 if (mask & POLLERR) { 215 if (mask & POLLERR) {
216 if (poll->wqh) 216 if (poll->wqh)
217 remove_wait_queue(poll->wqh, &poll->wait); 217 remove_wait_queue(poll->wqh, &poll->wait);