the rest of drivers/*: annotate ->poll() instances

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2017-07-03 06:39:46 -04:00
commit afc9a42b74
144 changed files with 257 additions and 256 deletions

View file

@ -621,9 +621,9 @@ static long evtchn_ioctl(struct file *file,
return rc;
}
static unsigned int evtchn_poll(struct file *file, poll_table *wait)
static __poll_t evtchn_poll(struct file *file, poll_table *wait)
{
unsigned int mask = POLLOUT | POLLWRNORM;
__poll_t mask = POLLOUT | POLLWRNORM;
struct per_user_data *u = file->private_data;
poll_wait(file, &u->evtchn_wait, wait);

View file

@ -139,7 +139,7 @@ out:
return err ? err : buf - ubuf;
}
static unsigned int xen_mce_chrdev_poll(struct file *file, poll_table *wait)
static __poll_t xen_mce_chrdev_poll(struct file *file, poll_table *wait)
{
poll_wait(file, &xen_mce_chrdev_wait, wait);

View file

@ -878,7 +878,7 @@ received:
return ret;
}
static unsigned int pvcalls_front_poll_passive(struct file *file,
static __poll_t pvcalls_front_poll_passive(struct file *file,
struct pvcalls_bedata *bedata,
struct sock_mapping *map,
poll_table *wait)
@ -935,12 +935,12 @@ static unsigned int pvcalls_front_poll_passive(struct file *file,
return 0;
}
static unsigned int pvcalls_front_poll_active(struct file *file,
static __poll_t pvcalls_front_poll_active(struct file *file,
struct pvcalls_bedata *bedata,
struct sock_mapping *map,
poll_table *wait)
{
unsigned int mask = 0;
__poll_t mask = 0;
int32_t in_error, out_error;
struct pvcalls_data_intf *intf = map->active.ring;
@ -958,12 +958,12 @@ static unsigned int pvcalls_front_poll_active(struct file *file,
return mask;
}
unsigned int pvcalls_front_poll(struct file *file, struct socket *sock,
__poll_t pvcalls_front_poll(struct file *file, struct socket *sock,
poll_table *wait)
{
struct pvcalls_bedata *bedata;
struct sock_mapping *map;
int ret;
__poll_t ret;
pvcalls_enter();
if (!pvcalls_front_dev) {

View file

@ -645,7 +645,7 @@ static int xenbus_file_release(struct inode *inode, struct file *filp)
return 0;
}
static unsigned int xenbus_file_poll(struct file *file, poll_table *wait)
static __poll_t xenbus_file_poll(struct file *file, poll_table *wait)
{
struct xenbus_file_priv *u = file->private_data;