vhost: annotate vhost_poll
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Jul 2017 03:50:40 +0000 (23:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Nov 2017 21:19:56 +0000 (16:19 -0500)
its ->mask is POLL... bitmap

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/vhost/vhost.c
drivers/vhost/vhost.h

index 7aad77be0b461661c33b88ee570a6e6a081d8989..7a897d2f21881d37cf971f9183788524051aea69 100644 (file)
@@ -187,7 +187,7 @@ EXPORT_SYMBOL_GPL(vhost_work_init);
 
 /* Init poll structure */
 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
-                    unsigned long mask, struct vhost_dev *dev)
+                    __poll_t mask, struct vhost_dev *dev)
 {
        init_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup);
        init_poll_funcptr(&poll->table, vhost_poll_func);
index 79c6e7a60a5ec8e7122b1d3282415c0b506c4f96..d94245b2fcc24e1bd11b2a71651cdb0469422b37 100644 (file)
@@ -34,7 +34,7 @@ struct vhost_poll {
        wait_queue_head_t        *wqh;
        wait_queue_entry_t              wait;
        struct vhost_work         work;
-       unsigned long             mask;
+       __poll_t                  mask;
        struct vhost_dev         *dev;
 };
 
@@ -43,7 +43,7 @@ void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work);
 bool vhost_has_work(struct vhost_dev *dev);
 
 void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
-                    unsigned long mask, struct vhost_dev *dev);
+                    __poll_t mask, struct vhost_dev *dev);
 int vhost_poll_start(struct vhost_poll *poll, struct file *file);
 void vhost_poll_stop(struct vhost_poll *poll);
 void vhost_poll_flush(struct vhost_poll *poll);