the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -595,11 +595,11 @@ static int wdm_flush(struct file *file, fl_owner_t id)
|
||||
return usb_translate_errors(desc->werr);
|
||||
}
|
||||
|
||||
static unsigned int wdm_poll(struct file *file, struct poll_table_struct *wait)
|
||||
static __poll_t wdm_poll(struct file *file, struct poll_table_struct *wait)
|
||||
{
|
||||
struct wdm_device *desc = file->private_data;
|
||||
unsigned long flags;
|
||||
unsigned int mask = 0;
|
||||
__poll_t mask = 0;
|
||||
|
||||
spin_lock_irqsave(&desc->iuspin, flags);
|
||||
if (test_bit(WDM_DISCONNECTING, &desc->flags)) {
|
||||
|
@@ -469,9 +469,9 @@ static int usblp_release(struct inode *inode, struct file *file)
|
||||
}
|
||||
|
||||
/* No kernel lock - fine */
|
||||
static unsigned int usblp_poll(struct file *file, struct poll_table_struct *wait)
|
||||
static __poll_t usblp_poll(struct file *file, struct poll_table_struct *wait)
|
||||
{
|
||||
int ret;
|
||||
__poll_t ret;
|
||||
unsigned long flags;
|
||||
|
||||
struct usblp *usblp = file->private_data;
|
||||
|
@@ -1257,10 +1257,10 @@ static int usbtmc_fasync(int fd, struct file *file, int on)
|
||||
return fasync_helper(fd, file, on, &data->fasync);
|
||||
}
|
||||
|
||||
static unsigned int usbtmc_poll(struct file *file, poll_table *wait)
|
||||
static __poll_t usbtmc_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
struct usbtmc_device_data *data = file->private_data;
|
||||
unsigned int mask;
|
||||
__poll_t mask;
|
||||
|
||||
mutex_lock(&data->io_mutex);
|
||||
|
||||
|
Reference in New Issue
Block a user