提交 58e3b602 编写于 作者: A Al Viro

vhost: annotate vhost_poll

its ->mask is POLL... bitmap
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 e8c33e22
...@@ -187,7 +187,7 @@ EXPORT_SYMBOL_GPL(vhost_work_init); ...@@ -187,7 +187,7 @@ EXPORT_SYMBOL_GPL(vhost_work_init);
/* Init poll structure */ /* Init poll structure */
void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, 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_waitqueue_func_entry(&poll->wait, vhost_poll_wakeup);
init_poll_funcptr(&poll->table, vhost_poll_func); init_poll_funcptr(&poll->table, vhost_poll_func);
......
...@@ -34,7 +34,7 @@ struct vhost_poll { ...@@ -34,7 +34,7 @@ struct vhost_poll {
wait_queue_head_t *wqh; wait_queue_head_t *wqh;
wait_queue_entry_t wait; wait_queue_entry_t wait;
struct vhost_work work; struct vhost_work work;
unsigned long mask; __poll_t mask;
struct vhost_dev *dev; struct vhost_dev *dev;
}; };
...@@ -43,7 +43,7 @@ void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work); ...@@ -43,7 +43,7 @@ void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work);
bool vhost_has_work(struct vhost_dev *dev); bool vhost_has_work(struct vhost_dev *dev);
void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn, 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); int vhost_poll_start(struct vhost_poll *poll, struct file *file);
void vhost_poll_stop(struct vhost_poll *poll); void vhost_poll_stop(struct vhost_poll *poll);
void vhost_poll_flush(struct vhost_poll *poll); void vhost_poll_flush(struct vhost_poll *poll);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册