diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-03 06:39:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 11:06:58 -0500 |
commit | afc9a42b7464f76e1388cad87d8543c69f6f74ed (patch) | |
tree | abc3abe50053edd3dcf0b04c2d2a63640ee89f6b /drivers/vhost | |
parent | c23e0cb81e4021b9712b1093d54713991fd9b7c2 (diff) |
the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/net.c | 2 | ||||
-rw-r--r-- | drivers/vhost/vhost.c | 4 | ||||
-rw-r--r-- | drivers/vhost/vhost.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 8d626d7c2e7e..0ed445a17c54 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
@@ -1353,7 +1353,7 @@ static ssize_t vhost_net_chr_write_iter(struct kiocb *iocb, | |||
1353 | return vhost_chr_write_iter(dev, from); | 1353 | return vhost_chr_write_iter(dev, from); |
1354 | } | 1354 | } |
1355 | 1355 | ||
1356 | static unsigned int vhost_net_chr_poll(struct file *file, poll_table *wait) | 1356 | static __poll_t vhost_net_chr_poll(struct file *file, poll_table *wait) |
1357 | { | 1357 | { |
1358 | struct vhost_net *n = file->private_data; | 1358 | struct vhost_net *n = file->private_data; |
1359 | struct vhost_dev *dev = &n->dev; | 1359 | struct vhost_dev *dev = &n->dev; |
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 7a897d2f2188..3bbeabff505a 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -1057,10 +1057,10 @@ done: | |||
1057 | } | 1057 | } |
1058 | EXPORT_SYMBOL(vhost_chr_write_iter); | 1058 | EXPORT_SYMBOL(vhost_chr_write_iter); |
1059 | 1059 | ||
1060 | unsigned int vhost_chr_poll(struct file *file, struct vhost_dev *dev, | 1060 | __poll_t vhost_chr_poll(struct file *file, struct vhost_dev *dev, |
1061 | poll_table *wait) | 1061 | poll_table *wait) |
1062 | { | 1062 | { |
1063 | unsigned int mask = 0; | 1063 | __poll_t mask = 0; |
1064 | 1064 | ||
1065 | poll_wait(file, &dev->wait, wait); | 1065 | poll_wait(file, &dev->wait, wait); |
1066 | 1066 | ||
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index d94245b2fcc2..7876a3d7d1b3 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h | |||
@@ -217,7 +217,7 @@ void vhost_enqueue_msg(struct vhost_dev *dev, | |||
217 | struct vhost_msg_node *node); | 217 | struct vhost_msg_node *node); |
218 | struct vhost_msg_node *vhost_dequeue_msg(struct vhost_dev *dev, | 218 | struct vhost_msg_node *vhost_dequeue_msg(struct vhost_dev *dev, |
219 | struct list_head *head); | 219 | struct list_head *head); |
220 | unsigned int vhost_chr_poll(struct file *file, struct vhost_dev *dev, | 220 | __poll_t vhost_chr_poll(struct file *file, struct vhost_dev *dev, |
221 | poll_table *wait); | 221 | poll_table *wait); |
222 | ssize_t vhost_chr_read_iter(struct vhost_dev *dev, struct iov_iter *to, | 222 | ssize_t vhost_chr_read_iter(struct vhost_dev *dev, struct iov_iter *to, |
223 | int noblock); | 223 | int noblock); |