the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c23e0cb81e
commit
afc9a42b74
|
@ -4276,7 +4276,7 @@ static int binder_thread_release(struct binder_proc *proc,
|
||||||
return active_transactions;
|
return active_transactions;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int binder_poll(struct file *filp,
|
static __poll_t binder_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct binder_proc *proc = filp->private_data;
|
struct binder_proc *proc = filp->private_data;
|
||||||
|
|
|
@ -794,7 +794,7 @@ static ssize_t hci_uart_tty_write(struct tty_struct *tty, struct file *file,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hci_uart_tty_poll(struct tty_struct *tty,
|
static __poll_t hci_uart_tty_poll(struct tty_struct *tty,
|
||||||
struct file *filp, poll_table *wait)
|
struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -299,7 +299,7 @@ static ssize_t vhci_write(struct kiocb *iocb, struct iov_iter *from)
|
||||||
return vhci_get_user(data, from);
|
return vhci_get_user(data, from);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int vhci_poll(struct file *file, poll_table *wait)
|
static __poll_t vhci_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct vhci_data *data = file->private_data;
|
struct vhci_data *data = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int apm_poll(struct file *fp, poll_table * wait)
|
static __poll_t apm_poll(struct file *fp, poll_table * wait)
|
||||||
{
|
{
|
||||||
struct apm_user *as = fp->private_data;
|
struct apm_user *as = fp->private_data;
|
||||||
|
|
||||||
|
|
|
@ -406,7 +406,7 @@ static long dsp56k_ioctl(struct file *file, unsigned int cmd,
|
||||||
* Do I need this function at all???
|
* Do I need this function at all???
|
||||||
*/
|
*/
|
||||||
#if 0
|
#if 0
|
||||||
static unsigned int dsp56k_poll(struct file *file, poll_table *wait)
|
static __poll_t dsp56k_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
int dev = iminor(file_inode(file)) & 0x0f;
|
int dev = iminor(file_inode(file)) & 0x0f;
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ static ssize_t dtlk_read(struct file *, char __user *,
|
||||||
size_t nbytes, loff_t * ppos);
|
size_t nbytes, loff_t * ppos);
|
||||||
static ssize_t dtlk_write(struct file *, const char __user *,
|
static ssize_t dtlk_write(struct file *, const char __user *,
|
||||||
size_t nbytes, loff_t * ppos);
|
size_t nbytes, loff_t * ppos);
|
||||||
static unsigned int dtlk_poll(struct file *, poll_table *);
|
static __poll_t dtlk_poll(struct file *, poll_table *);
|
||||||
static int dtlk_open(struct inode *, struct file *);
|
static int dtlk_open(struct inode *, struct file *);
|
||||||
static int dtlk_release(struct inode *, struct file *);
|
static int dtlk_release(struct inode *, struct file *);
|
||||||
static long dtlk_ioctl(struct file *file,
|
static long dtlk_ioctl(struct file *file,
|
||||||
|
@ -228,9 +228,9 @@ static ssize_t dtlk_write(struct file *file, const char __user *buf,
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int dtlk_poll(struct file *file, poll_table * wait)
|
static __poll_t dtlk_poll(struct file *file, poll_table * wait)
|
||||||
{
|
{
|
||||||
int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long expires;
|
unsigned long expires;
|
||||||
|
|
||||||
TRACE_TEXT(" dtlk_poll");
|
TRACE_TEXT(" dtlk_poll");
|
||||||
|
|
|
@ -342,7 +342,7 @@ out:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hpet_poll(struct file *file, poll_table * wait)
|
static __poll_t hpet_poll(struct file *file, poll_table * wait)
|
||||||
{
|
{
|
||||||
unsigned long v;
|
unsigned long v;
|
||||||
struct hpet_dev *devp;
|
struct hpet_dev *devp;
|
||||||
|
|
|
@ -338,10 +338,10 @@ static int bt_bmc_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int bt_bmc_poll(struct file *file, poll_table *wait)
|
static __poll_t bt_bmc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct bt_bmc *bt_bmc = file_bt_bmc(file);
|
struct bt_bmc *bt_bmc = file_bt_bmc(file);
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
u8 ctrl;
|
u8 ctrl;
|
||||||
|
|
||||||
poll_wait(file, &bt_bmc->queue, wait);
|
poll_wait(file, &bt_bmc->queue, wait);
|
||||||
|
|
|
@ -78,10 +78,10 @@ static void file_receive_handler(struct ipmi_recv_msg *msg,
|
||||||
spin_unlock_irqrestore(&(priv->recv_msg_lock), flags);
|
spin_unlock_irqrestore(&(priv->recv_msg_lock), flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ipmi_poll(struct file *file, poll_table *wait)
|
static __poll_t ipmi_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct ipmi_file_private *priv = file->private_data;
|
struct ipmi_file_private *priv = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
poll_wait(file, &priv->wait, wait);
|
poll_wait(file, &priv->wait, wait);
|
||||||
|
|
|
@ -887,9 +887,9 @@ static int ipmi_open(struct inode *ino, struct file *filep)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ipmi_poll(struct file *file, poll_table *wait)
|
static __poll_t ipmi_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &read_q, wait);
|
poll_wait(file, &read_q, wait);
|
||||||
|
|
||||||
|
|
|
@ -415,10 +415,10 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int cm4040_poll(struct file *filp, poll_table *wait)
|
static __poll_t cm4040_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct reader_dev *dev = filp->private_data;
|
struct reader_dev *dev = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &dev->poll_wait, wait);
|
poll_wait(filp, &dev->poll_wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -769,10 +769,10 @@ static int pp_release(struct inode *inode, struct file *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock held - fine */
|
/* No kernel lock held - fine */
|
||||||
static unsigned int pp_poll(struct file *file, poll_table *wait)
|
static __poll_t pp_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct pp_struct *pp = file->private_data;
|
struct pp_struct *pp = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &pp->irq_wait, wait);
|
poll_wait(file, &pp->irq_wait, wait);
|
||||||
if (atomic_read(&pp->irqc))
|
if (atomic_read(&pp->irqc))
|
||||||
|
|
|
@ -1784,10 +1784,10 @@ urandom_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
random_poll(struct file *file, poll_table * wait)
|
random_poll(struct file *file, poll_table * wait)
|
||||||
{
|
{
|
||||||
unsigned int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
poll_wait(file, &random_read_wait, wait);
|
poll_wait(file, &random_read_wait, wait);
|
||||||
poll_wait(file, &random_write_wait, wait);
|
poll_wait(file, &random_write_wait, wait);
|
||||||
|
|
|
@ -147,7 +147,7 @@ static long rtc_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
||||||
static void rtc_get_rtc_time(struct rtc_time *rtc_tm);
|
static void rtc_get_rtc_time(struct rtc_time *rtc_tm);
|
||||||
|
|
||||||
#ifdef RTC_IRQ
|
#ifdef RTC_IRQ
|
||||||
static unsigned int rtc_poll(struct file *file, poll_table *wait);
|
static __poll_t rtc_poll(struct file *file, poll_table *wait);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void get_rtc_alm_time(struct rtc_time *alm_tm);
|
static void get_rtc_alm_time(struct rtc_time *alm_tm);
|
||||||
|
@ -790,7 +790,7 @@ no_irq:
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef RTC_IRQ
|
#ifdef RTC_IRQ
|
||||||
static unsigned int rtc_poll(struct file *file, poll_table *wait)
|
static __poll_t rtc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned long l;
|
unsigned long l;
|
||||||
|
|
||||||
|
|
|
@ -321,10 +321,10 @@ scdrv_write(struct file *file, const char __user *buf,
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
scdrv_poll(struct file *file, struct poll_table_struct *wait)
|
scdrv_poll(struct file *file, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
|
struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
|
@ -940,7 +940,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int sonypi_misc_poll(struct file *file, poll_table *wait)
|
static __poll_t sonypi_misc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
poll_wait(file, &sonypi_device.fifo_proc_list, wait);
|
poll_wait(file, &sonypi_device.fifo_proc_list, wait);
|
||||||
if (kfifo_len(&sonypi_device.fifo))
|
if (kfifo_len(&sonypi_device.fifo))
|
||||||
|
|
|
@ -173,10 +173,10 @@ static ssize_t vtpm_proxy_fops_write(struct file *filp, const char __user *buf,
|
||||||
*
|
*
|
||||||
* Return: Poll flags
|
* Return: Poll flags
|
||||||
*/
|
*/
|
||||||
static unsigned int vtpm_proxy_fops_poll(struct file *filp, poll_table *wait)
|
static __poll_t vtpm_proxy_fops_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct proxy_dev *proxy_dev = filp->private_data;
|
struct proxy_dev *proxy_dev = filp->private_data;
|
||||||
unsigned ret;
|
__poll_t ret;
|
||||||
|
|
||||||
poll_wait(filp, &proxy_dev->wq, wait);
|
poll_wait(filp, &proxy_dev->wq, wait);
|
||||||
|
|
||||||
|
|
|
@ -982,10 +982,10 @@ error_out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int port_fops_poll(struct file *filp, poll_table *wait)
|
static __poll_t port_fops_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct port *port;
|
struct port *port;
|
||||||
unsigned int ret;
|
__poll_t ret;
|
||||||
|
|
||||||
port = filp->private_data;
|
port = filp->private_data;
|
||||||
poll_wait(filp, &port->waitqueue, wait);
|
poll_wait(filp, &port->waitqueue, wait);
|
||||||
|
|
|
@ -1736,10 +1736,10 @@ end:
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int xillybus_poll(struct file *filp, poll_table *wait)
|
static __poll_t xillybus_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct xilly_channel *channel = filp->private_data;
|
struct xilly_channel *channel = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
poll_wait(filp, &channel->endpoint->ep_wait, wait);
|
poll_wait(filp, &channel->endpoint->ep_wait, wait);
|
||||||
|
|
|
@ -157,7 +157,7 @@ static void dma_buf_poll_cb(struct dma_fence *fence, struct dma_fence_cb *cb)
|
||||||
spin_unlock_irqrestore(&dcb->poll->lock, flags);
|
spin_unlock_irqrestore(&dcb->poll->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int dma_buf_poll(struct file *file, poll_table *poll)
|
static __poll_t dma_buf_poll(struct file *file, poll_table *poll)
|
||||||
{
|
{
|
||||||
struct dma_buf *dmabuf;
|
struct dma_buf *dmabuf;
|
||||||
struct reservation_object *resv;
|
struct reservation_object *resv;
|
||||||
|
@ -195,7 +195,7 @@ retry:
|
||||||
|
|
||||||
if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) {
|
if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) {
|
||||||
struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl;
|
struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl;
|
||||||
unsigned long pevents = POLLIN;
|
__poll_t pevents = POLLIN;
|
||||||
|
|
||||||
if (shared_count == 0)
|
if (shared_count == 0)
|
||||||
pevents |= POLLOUT;
|
pevents |= POLLOUT;
|
||||||
|
|
|
@ -312,7 +312,7 @@ static int sync_file_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int sync_file_poll(struct file *file, poll_table *wait)
|
static __poll_t sync_file_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct sync_file *sync_file = file->private_data;
|
struct sync_file *sync_file = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -1784,10 +1784,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int fw_device_op_poll(struct file *file, poll_table * pt)
|
static __poll_t fw_device_op_poll(struct file *file, poll_table * pt)
|
||||||
{
|
{
|
||||||
struct client *client = file->private_data;
|
struct client *client = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &client->wait, pt);
|
poll_wait(file, &client->wait, pt);
|
||||||
|
|
||||||
|
|
|
@ -328,11 +328,11 @@ nosy_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
nosy_poll(struct file *file, poll_table *pt)
|
nosy_poll(struct file *file, poll_table *pt)
|
||||||
{
|
{
|
||||||
struct client *client = file->private_data;
|
struct client *client = file->private_data;
|
||||||
unsigned int ret = 0;
|
__poll_t ret = 0;
|
||||||
|
|
||||||
poll_wait(file, &client->buffer.wait, pt);
|
poll_wait(file, &client->buffer.wait, pt);
|
||||||
|
|
||||||
|
|
|
@ -603,11 +603,11 @@ struct lineevent_state {
|
||||||
(GPIOEVENT_REQUEST_RISING_EDGE | \
|
(GPIOEVENT_REQUEST_RISING_EDGE | \
|
||||||
GPIOEVENT_REQUEST_FALLING_EDGE)
|
GPIOEVENT_REQUEST_FALLING_EDGE)
|
||||||
|
|
||||||
static unsigned int lineevent_poll(struct file *filep,
|
static __poll_t lineevent_poll(struct file *filep,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct lineevent_state *le = filep->private_data;
|
struct lineevent_state *le = filep->private_data;
|
||||||
unsigned int events = 0;
|
__poll_t events = 0;
|
||||||
|
|
||||||
poll_wait(filep, &le->wait, wait);
|
poll_wait(filep, &le->wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -559,10 +559,10 @@ EXPORT_SYMBOL(drm_read);
|
||||||
*
|
*
|
||||||
* Mask of POLL flags indicating the current status of the file.
|
* Mask of POLL flags indicating the current status of the file.
|
||||||
*/
|
*/
|
||||||
unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait)
|
__poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct drm_file *file_priv = filp->private_data;
|
struct drm_file *file_priv = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &file_priv->event_wait, wait);
|
poll_wait(filp, &file_priv->event_wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -2331,12 +2331,12 @@ static enum hrtimer_restart oa_poll_check_timer_cb(struct hrtimer *hrtimer)
|
||||||
*
|
*
|
||||||
* Returns: any poll events that are ready without sleeping
|
* Returns: any poll events that are ready without sleeping
|
||||||
*/
|
*/
|
||||||
static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv,
|
static __poll_t i915_perf_poll_locked(struct drm_i915_private *dev_priv,
|
||||||
struct i915_perf_stream *stream,
|
struct i915_perf_stream *stream,
|
||||||
struct file *file,
|
struct file *file,
|
||||||
poll_table *wait)
|
poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int events = 0;
|
__poll_t events = 0;
|
||||||
|
|
||||||
stream->ops->poll_wait(stream, file, wait);
|
stream->ops->poll_wait(stream, file, wait);
|
||||||
|
|
||||||
|
@ -2365,11 +2365,11 @@ static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv,
|
||||||
*
|
*
|
||||||
* Returns: any poll events that are ready without sleeping
|
* Returns: any poll events that are ready without sleeping
|
||||||
*/
|
*/
|
||||||
static unsigned int i915_perf_poll(struct file *file, poll_table *wait)
|
static __poll_t i915_perf_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct i915_perf_stream *stream = file->private_data;
|
struct i915_perf_stream *stream = file->private_data;
|
||||||
struct drm_i915_private *dev_priv = stream->dev_priv;
|
struct drm_i915_private *dev_priv = stream->dev_priv;
|
||||||
int ret;
|
__poll_t ret;
|
||||||
|
|
||||||
mutex_lock(&dev_priv->perf.lock);
|
mutex_lock(&dev_priv->perf.lock);
|
||||||
ret = i915_perf_poll_locked(dev_priv, stream, file, wait);
|
ret = i915_perf_poll_locked(dev_priv, stream, file, wait);
|
||||||
|
|
|
@ -713,7 +713,7 @@ extern int vmw_present_ioctl(struct drm_device *dev, void *data,
|
||||||
struct drm_file *file_priv);
|
struct drm_file *file_priv);
|
||||||
extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data,
|
extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data,
|
||||||
struct drm_file *file_priv);
|
struct drm_file *file_priv);
|
||||||
extern unsigned int vmw_fops_poll(struct file *filp,
|
extern __poll_t vmw_fops_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait);
|
struct poll_table_struct *wait);
|
||||||
extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer,
|
extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer,
|
||||||
size_t count, loff_t *offset);
|
size_t count, loff_t *offset);
|
||||||
|
|
|
@ -412,7 +412,7 @@ out_clips:
|
||||||
* Wrapper around the drm_poll function that makes sure the device is
|
* Wrapper around the drm_poll function that makes sure the device is
|
||||||
* processing the fifo if drm_poll decides to wait.
|
* processing the fifo if drm_poll decides to wait.
|
||||||
*/
|
*/
|
||||||
unsigned int vmw_fops_poll(struct file *filp, struct poll_table_struct *wait)
|
__poll_t vmw_fops_poll(struct file *filp, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct drm_file *file_priv = filp->private_data;
|
struct drm_file *file_priv = filp->private_data;
|
||||||
struct vmw_private *dev_priv =
|
struct vmw_private *dev_priv =
|
||||||
|
|
|
@ -1266,7 +1266,7 @@ done:
|
||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int vga_arb_fpoll(struct file *file, poll_table *wait)
|
static __poll_t vga_arb_fpoll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
pr_debug("%s\n", __func__);
|
pr_debug("%s\n", __func__);
|
||||||
|
|
||||||
|
|
|
@ -1179,7 +1179,7 @@ out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hid_debug_events_poll(struct file *file, poll_table *wait)
|
static __poll_t hid_debug_events_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct hid_debug_list *list = file->private_data;
|
struct hid_debug_list *list = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ exit_unlock:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int roccat_poll(struct file *file, poll_table *wait)
|
static __poll_t roccat_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct roccat_reader *reader = file->private_data;
|
struct roccat_reader *reader = file->private_data;
|
||||||
poll_wait(file, &reader->device->wait, wait);
|
poll_wait(file, &reader->device->wait, wait);
|
||||||
|
|
|
@ -702,11 +702,11 @@ static int hid_sensor_custom_open(struct inode *inode, struct file *file)
|
||||||
return nonseekable_open(inode, file);
|
return nonseekable_open(inode, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hid_sensor_custom_poll(struct file *file,
|
static __poll_t hid_sensor_custom_poll(struct file *file,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct hid_sensor_custom *sensor_inst;
|
struct hid_sensor_custom *sensor_inst;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
sensor_inst = container_of(file->private_data,
|
sensor_inst = container_of(file->private_data,
|
||||||
struct hid_sensor_custom, custom_dev);
|
struct hid_sensor_custom, custom_dev);
|
||||||
|
|
|
@ -249,7 +249,7 @@ out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hidraw_poll(struct file *file, poll_table *wait)
|
static __poll_t hidraw_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct hidraw_list *list = file->private_data;
|
struct hidraw_list *list = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -753,7 +753,7 @@ unlock:
|
||||||
return ret ? ret : count;
|
return ret ? ret : count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int uhid_char_poll(struct file *file, poll_table *wait)
|
static __poll_t uhid_char_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct uhid_device *uhid = file->private_data;
|
struct uhid_device *uhid = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -422,7 +422,7 @@ static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t coun
|
||||||
* "poll" file op
|
* "poll" file op
|
||||||
* No kernel lock - fine
|
* No kernel lock - fine
|
||||||
*/
|
*/
|
||||||
static unsigned int hiddev_poll(struct file *file, poll_table *wait)
|
static __poll_t hiddev_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct hiddev_list *list = file->private_data;
|
struct hiddev_list *list = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -1124,10 +1124,10 @@ static int cs_char_fasync(int fd, struct file *file, int on)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int cs_char_poll(struct file *file, poll_table *wait)
|
static __poll_t cs_char_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct cs_char *csdata = file->private_data;
|
struct cs_char *csdata = file->private_data;
|
||||||
unsigned int ret = 0;
|
__poll_t ret = 0;
|
||||||
|
|
||||||
poll_wait(file, &cs_char_data.wait, wait);
|
poll_wait(file, &cs_char_data.wait, wait);
|
||||||
spin_lock_bh(&csdata->lock);
|
spin_lock_bh(&csdata->lock);
|
||||||
|
|
|
@ -104,7 +104,7 @@ static ssize_t hvt_op_write(struct file *file, const char __user *buf,
|
||||||
return ret ? ret : count;
|
return ret ? ret : count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hvt_op_poll(struct file *file, poll_table *wait)
|
static __poll_t hvt_op_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct hvutil_transport *hvt;
|
struct hvutil_transport *hvt;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals);
|
||||||
#ifdef CONFIG_IIO_BUFFER
|
#ifdef CONFIG_IIO_BUFFER
|
||||||
struct poll_table_struct;
|
struct poll_table_struct;
|
||||||
|
|
||||||
unsigned int iio_buffer_poll(struct file *filp,
|
__poll_t iio_buffer_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait);
|
struct poll_table_struct *wait);
|
||||||
ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
|
ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
|
||||||
size_t n, loff_t *f_ps);
|
size_t n, loff_t *f_ps);
|
||||||
|
|
|
@ -169,7 +169,7 @@ ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
|
||||||
* Return: (POLLIN | POLLRDNORM) if data is available for reading
|
* Return: (POLLIN | POLLRDNORM) if data is available for reading
|
||||||
* or 0 for other cases
|
* or 0 for other cases
|
||||||
*/
|
*/
|
||||||
unsigned int iio_buffer_poll(struct file *filp,
|
__poll_t iio_buffer_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct iio_dev *indio_dev = filp->private_data;
|
struct iio_dev *indio_dev = filp->private_data;
|
||||||
|
|
|
@ -95,12 +95,12 @@ EXPORT_SYMBOL(iio_push_event);
|
||||||
* Return: (POLLIN | POLLRDNORM) if data is available for reading
|
* Return: (POLLIN | POLLRDNORM) if data is available for reading
|
||||||
* or a negative error code on failure
|
* or a negative error code on failure
|
||||||
*/
|
*/
|
||||||
static unsigned int iio_event_poll(struct file *filep,
|
static __poll_t iio_event_poll(struct file *filep,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct iio_dev *indio_dev = filep->private_data;
|
struct iio_dev *indio_dev = filep->private_data;
|
||||||
struct iio_event_interface *ev_int = indio_dev->event_interface;
|
struct iio_event_interface *ev_int = indio_dev->event_interface;
|
||||||
unsigned int events = 0;
|
__poll_t events = 0;
|
||||||
|
|
||||||
if (!indio_dev->info)
|
if (!indio_dev->info)
|
||||||
return events;
|
return events;
|
||||||
|
|
|
@ -1130,11 +1130,11 @@ static ssize_t ib_ucm_write(struct file *filp, const char __user *buf,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ib_ucm_poll(struct file *filp,
|
static __poll_t ib_ucm_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct ib_ucm_file *file = filp->private_data;
|
struct ib_ucm_file *file = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &file->poll_wait, wait);
|
poll_wait(filp, &file->poll_wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -1630,10 +1630,10 @@ static ssize_t ucma_write(struct file *filp, const char __user *buf,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait)
|
static __poll_t ucma_poll(struct file *filp, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct ucma_file *file = filp->private_data;
|
struct ucma_file *file = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &file->poll_wait, wait);
|
poll_wait(filp, &file->poll_wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -617,12 +617,12 @@ err:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ib_umad_poll(struct file *filp, struct poll_table_struct *wait)
|
static __poll_t ib_umad_poll(struct file *filp, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct ib_umad_file *file = filp->private_data;
|
struct ib_umad_file *file = filp->private_data;
|
||||||
|
|
||||||
/* we will always be able to post a MAD send */
|
/* we will always be able to post a MAD send */
|
||||||
unsigned int mask = POLLOUT | POLLWRNORM;
|
__poll_t mask = POLLOUT | POLLWRNORM;
|
||||||
|
|
||||||
poll_wait(filp, &file->recv_wait, wait);
|
poll_wait(filp, &file->recv_wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -339,11 +339,11 @@ static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf,
|
||||||
sizeof(struct ib_uverbs_comp_event_desc));
|
sizeof(struct ib_uverbs_comp_event_desc));
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue,
|
static __poll_t ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue,
|
||||||
struct file *filp,
|
struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
unsigned int pollflags = 0;
|
__poll_t pollflags = 0;
|
||||||
|
|
||||||
poll_wait(filp, &ev_queue->poll_wait, wait);
|
poll_wait(filp, &ev_queue->poll_wait, wait);
|
||||||
|
|
||||||
|
@ -355,13 +355,13 @@ static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue,
|
||||||
return pollflags;
|
return pollflags;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ib_uverbs_async_event_poll(struct file *filp,
|
static __poll_t ib_uverbs_async_event_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
return ib_uverbs_event_poll(filp->private_data, filp, wait);
|
return ib_uverbs_event_poll(filp->private_data, filp, wait);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ib_uverbs_comp_event_poll(struct file *filp,
|
static __poll_t ib_uverbs_comp_event_poll(struct file *filp,
|
||||||
struct poll_table_struct *wait)
|
struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct ib_uverbs_completion_event_file *comp_ev_file =
|
struct ib_uverbs_completion_event_file *comp_ev_file =
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
static int hfi1_file_open(struct inode *inode, struct file *fp);
|
static int hfi1_file_open(struct inode *inode, struct file *fp);
|
||||||
static int hfi1_file_close(struct inode *inode, struct file *fp);
|
static int hfi1_file_close(struct inode *inode, struct file *fp);
|
||||||
static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from);
|
static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from);
|
||||||
static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt);
|
static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt);
|
||||||
static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma);
|
static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma);
|
||||||
|
|
||||||
static u64 kvirt_to_phys(void *addr);
|
static u64 kvirt_to_phys(void *addr);
|
||||||
|
@ -102,8 +102,8 @@ static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd,
|
||||||
struct hfi1_user_info *uinfo,
|
struct hfi1_user_info *uinfo,
|
||||||
struct hfi1_ctxtdata **cd);
|
struct hfi1_ctxtdata **cd);
|
||||||
static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt);
|
static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt);
|
||||||
static unsigned int poll_urgent(struct file *fp, struct poll_table_struct *pt);
|
static __poll_t poll_urgent(struct file *fp, struct poll_table_struct *pt);
|
||||||
static unsigned int poll_next(struct file *fp, struct poll_table_struct *pt);
|
static __poll_t poll_next(struct file *fp, struct poll_table_struct *pt);
|
||||||
static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt,
|
static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt,
|
||||||
unsigned long arg);
|
unsigned long arg);
|
||||||
static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg);
|
static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg);
|
||||||
|
@ -607,10 +607,10 @@ static int vma_fault(struct vm_fault *vmf)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt)
|
static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct hfi1_ctxtdata *uctxt;
|
struct hfi1_ctxtdata *uctxt;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt;
|
uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt;
|
||||||
if (!uctxt)
|
if (!uctxt)
|
||||||
|
@ -1425,13 +1425,13 @@ static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int poll_urgent(struct file *fp,
|
static __poll_t poll_urgent(struct file *fp,
|
||||||
struct poll_table_struct *pt)
|
struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct hfi1_filedata *fd = fp->private_data;
|
struct hfi1_filedata *fd = fp->private_data;
|
||||||
struct hfi1_ctxtdata *uctxt = fd->uctxt;
|
struct hfi1_ctxtdata *uctxt = fd->uctxt;
|
||||||
struct hfi1_devdata *dd = uctxt->dd;
|
struct hfi1_devdata *dd = uctxt->dd;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
poll_wait(fp, &uctxt->wait, pt);
|
poll_wait(fp, &uctxt->wait, pt);
|
||||||
|
|
||||||
|
@ -1448,13 +1448,13 @@ static unsigned int poll_urgent(struct file *fp,
|
||||||
return pollflag;
|
return pollflag;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int poll_next(struct file *fp,
|
static __poll_t poll_next(struct file *fp,
|
||||||
struct poll_table_struct *pt)
|
struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct hfi1_filedata *fd = fp->private_data;
|
struct hfi1_filedata *fd = fp->private_data;
|
||||||
struct hfi1_ctxtdata *uctxt = fd->uctxt;
|
struct hfi1_ctxtdata *uctxt = fd->uctxt;
|
||||||
struct hfi1_devdata *dd = uctxt->dd;
|
struct hfi1_devdata *dd = uctxt->dd;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
poll_wait(fp, &uctxt->wait, pt);
|
poll_wait(fp, &uctxt->wait, pt);
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ static int qib_open(struct inode *, struct file *);
|
||||||
static int qib_close(struct inode *, struct file *);
|
static int qib_close(struct inode *, struct file *);
|
||||||
static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *);
|
static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *);
|
||||||
static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *);
|
static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *);
|
||||||
static unsigned int qib_poll(struct file *, struct poll_table_struct *);
|
static __poll_t qib_poll(struct file *, struct poll_table_struct *);
|
||||||
static int qib_mmapf(struct file *, struct vm_area_struct *);
|
static int qib_mmapf(struct file *, struct vm_area_struct *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1092,12 +1092,12 @@ bail:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd,
|
static __poll_t qib_poll_urgent(struct qib_ctxtdata *rcd,
|
||||||
struct file *fp,
|
struct file *fp,
|
||||||
struct poll_table_struct *pt)
|
struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct qib_devdata *dd = rcd->dd;
|
struct qib_devdata *dd = rcd->dd;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
poll_wait(fp, &rcd->wait, pt);
|
poll_wait(fp, &rcd->wait, pt);
|
||||||
|
|
||||||
|
@ -1114,12 +1114,12 @@ static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd,
|
||||||
return pollflag;
|
return pollflag;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int qib_poll_next(struct qib_ctxtdata *rcd,
|
static __poll_t qib_poll_next(struct qib_ctxtdata *rcd,
|
||||||
struct file *fp,
|
struct file *fp,
|
||||||
struct poll_table_struct *pt)
|
struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct qib_devdata *dd = rcd->dd;
|
struct qib_devdata *dd = rcd->dd;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
poll_wait(fp, &rcd->wait, pt);
|
poll_wait(fp, &rcd->wait, pt);
|
||||||
|
|
||||||
|
@ -1135,10 +1135,10 @@ static unsigned int qib_poll_next(struct qib_ctxtdata *rcd,
|
||||||
return pollflag;
|
return pollflag;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int qib_poll(struct file *fp, struct poll_table_struct *pt)
|
static __poll_t qib_poll(struct file *fp, struct poll_table_struct *pt)
|
||||||
{
|
{
|
||||||
struct qib_ctxtdata *rcd;
|
struct qib_ctxtdata *rcd;
|
||||||
unsigned pollflag;
|
__poll_t pollflag;
|
||||||
|
|
||||||
rcd = ctxt_fp(fp);
|
rcd = ctxt_fp(fp);
|
||||||
if (!rcd)
|
if (!rcd)
|
||||||
|
|
|
@ -635,11 +635,11 @@ static ssize_t evdev_read(struct file *file, char __user *buffer,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int evdev_poll(struct file *file, poll_table *wait)
|
static __poll_t evdev_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct evdev_client *client = file->private_data;
|
struct evdev_client *client = file->private_data;
|
||||||
struct evdev *evdev = client->evdev;
|
struct evdev *evdev = client->evdev;
|
||||||
unsigned int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
poll_wait(file, &evdev->wait, wait);
|
poll_wait(file, &evdev->wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -1048,7 +1048,7 @@ static inline void input_wakeup_procfs_readers(void)
|
||||||
wake_up(&input_devices_poll_wait);
|
wake_up(&input_devices_poll_wait);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int input_proc_devices_poll(struct file *file, poll_table *wait)
|
static __poll_t input_proc_devices_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
poll_wait(file, &input_devices_poll_wait, wait);
|
poll_wait(file, &input_devices_poll_wait, wait);
|
||||||
if (file->f_version != input_devices_state) {
|
if (file->f_version != input_devices_state) {
|
||||||
|
|
|
@ -436,7 +436,7 @@ static ssize_t joydev_read(struct file *file, char __user *buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int joydev_poll(struct file *file, poll_table *wait)
|
static __poll_t joydev_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct joydev_client *client = file->private_data;
|
struct joydev_client *client = file->private_data;
|
||||||
struct joydev *joydev = client->joydev;
|
struct joydev *joydev = client->joydev;
|
||||||
|
|
|
@ -408,7 +408,7 @@ static ssize_t hp_sdc_rtc_read(struct file *file, char __user *buf,
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int hp_sdc_rtc_poll(struct file *file, poll_table *wait)
|
static __poll_t hp_sdc_rtc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned long l;
|
unsigned long l;
|
||||||
|
|
||||||
|
|
|
@ -694,7 +694,7 @@ static ssize_t uinput_read(struct file *file, char __user *buffer,
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int uinput_poll(struct file *file, poll_table *wait)
|
static __poll_t uinput_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct uinput_device *udev = file->private_data;
|
struct uinput_device *udev = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -757,11 +757,11 @@ static ssize_t mousedev_read(struct file *file, char __user *buffer,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int mousedev_poll(struct file *file, poll_table *wait)
|
static __poll_t mousedev_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct mousedev_client *client = file->private_data;
|
struct mousedev_client *client = file->private_data;
|
||||||
struct mousedev *mousedev = client->mousedev;
|
struct mousedev *mousedev = client->mousedev;
|
||||||
unsigned int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
poll_wait(file, &mousedev->wait, wait);
|
poll_wait(file, &mousedev->wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -239,11 +239,11 @@ out:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int serio_raw_poll(struct file *file, poll_table *wait)
|
static __poll_t serio_raw_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct serio_raw_client *client = file->private_data;
|
struct serio_raw_client *client = file->private_data;
|
||||||
struct serio_raw *serio_raw = client->serio_raw;
|
struct serio_raw *serio_raw = client->serio_raw;
|
||||||
unsigned int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
poll_wait(file, &serio_raw->wait, wait);
|
poll_wait(file, &serio_raw->wait, wait);
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ out:
|
||||||
return error ?: count;
|
return error ?: count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int userio_char_poll(struct file *file, poll_table *wait)
|
static __poll_t userio_char_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct userio_device *userio = file->private_data;
|
struct userio_device *userio = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -724,11 +724,11 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
capi_poll(struct file *file, poll_table *wait)
|
capi_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct capidev *cdev = file->private_data;
|
struct capidev *cdev = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
if (!cdev->ap.applid)
|
if (!cdev->ap.applid)
|
||||||
return POLLERR;
|
return POLLERR;
|
||||||
|
|
|
@ -119,10 +119,10 @@ isdn_divert_write(struct file *file, const char __user *buf, size_t count, loff_
|
||||||
/***************************************/
|
/***************************************/
|
||||||
/* select routines for various kernels */
|
/* select routines for various kernels */
|
||||||
/***************************************/
|
/***************************************/
|
||||||
static unsigned int
|
static __poll_t
|
||||||
isdn_divert_poll(struct file *file, poll_table *wait)
|
isdn_divert_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &(rd_queue), wait);
|
poll_wait(file, &(rd_queue), wait);
|
||||||
/* mask = POLLOUT | POLLWRNORM; */
|
/* mask = POLLOUT | POLLWRNORM; */
|
||||||
|
|
|
@ -98,9 +98,9 @@ void diva_os_get_time(dword *sec, dword *usec)
|
||||||
/*
|
/*
|
||||||
* device node operations
|
* device node operations
|
||||||
*/
|
*/
|
||||||
static unsigned int maint_poll(struct file *file, poll_table *wait)
|
static __poll_t maint_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &msgwaitq, wait);
|
poll_wait(file, &msgwaitq, wait);
|
||||||
mask = POLLOUT | POLLWRNORM;
|
mask = POLLOUT | POLLWRNORM;
|
||||||
|
|
|
@ -74,7 +74,7 @@ static ssize_t um_idi_read(struct file *file, char __user *buf, size_t count,
|
||||||
loff_t *offset);
|
loff_t *offset);
|
||||||
static ssize_t um_idi_write(struct file *file, const char __user *buf,
|
static ssize_t um_idi_write(struct file *file, const char __user *buf,
|
||||||
size_t count, loff_t *offset);
|
size_t count, loff_t *offset);
|
||||||
static unsigned int um_idi_poll(struct file *file, poll_table *wait);
|
static __poll_t um_idi_poll(struct file *file, poll_table *wait);
|
||||||
static int um_idi_open(struct inode *inode, struct file *file);
|
static int um_idi_open(struct inode *inode, struct file *file);
|
||||||
static int um_idi_release(struct inode *inode, struct file *file);
|
static int um_idi_release(struct inode *inode, struct file *file);
|
||||||
static int remove_entity(void *entity);
|
static int remove_entity(void *entity);
|
||||||
|
@ -365,7 +365,7 @@ um_idi_write(struct file *file, const char __user *buf, size_t count,
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int um_idi_poll(struct file *file, poll_table *wait)
|
static __poll_t um_idi_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
diva_um_idi_os_context_t *p_os;
|
diva_um_idi_os_context_t *p_os;
|
||||||
|
|
||||||
|
|
|
@ -650,7 +650,7 @@ static ssize_t divas_read(struct file *file, char __user *buf,
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int divas_poll(struct file *file, poll_table *wait)
|
static __poll_t divas_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
if (!file->private_data) {
|
if (!file->private_data) {
|
||||||
return (POLLERR);
|
return (POLLERR);
|
||||||
|
|
|
@ -99,7 +99,7 @@ divas_write(struct file *file, const char __user *buf, size_t count, loff_t *off
|
||||||
return (-ENODEV);
|
return (-ENODEV);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int divas_poll(struct file *file, poll_table *wait)
|
static __poll_t divas_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
return (POLLERR);
|
return (POLLERR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,10 +281,10 @@ hysdn_log_close(struct inode *ino, struct file *filep)
|
||||||
/*************************************************/
|
/*************************************************/
|
||||||
/* select/poll routine to be able using select() */
|
/* select/poll routine to be able using select() */
|
||||||
/*************************************************/
|
/*************************************************/
|
||||||
static unsigned int
|
static __poll_t
|
||||||
hysdn_log_poll(struct file *file, poll_table *wait)
|
hysdn_log_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
hysdn_card *card = PDE_DATA(file_inode(file));
|
hysdn_card *card = PDE_DATA(file_inode(file));
|
||||||
struct procdata *pd = card->proclog;
|
struct procdata *pd = card->proclog;
|
||||||
|
|
||||||
|
|
|
@ -1227,10 +1227,10 @@ out:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
isdn_poll(struct file *file, poll_table *wait)
|
isdn_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned int minor = iminor(file_inode(file));
|
unsigned int minor = iminor(file_inode(file));
|
||||||
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
|
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
|
||||||
|
|
||||||
|
|
|
@ -685,10 +685,10 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int
|
__poll_t
|
||||||
isdn_ppp_poll(struct file *file, poll_table *wait)
|
isdn_ppp_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
u_int mask;
|
__poll_t mask;
|
||||||
struct ippp_buf_queue *bf, *bl;
|
struct ippp_buf_queue *bf, *bl;
|
||||||
u_long flags;
|
u_long flags;
|
||||||
struct ippp_struct *is;
|
struct ippp_struct *is;
|
||||||
|
|
|
@ -23,7 +23,7 @@ extern int isdn_ppp_autodial_filter(struct sk_buff *, isdn_net_local *);
|
||||||
extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *);
|
extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *);
|
||||||
extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
|
extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
|
||||||
extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
|
extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
|
||||||
extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *);
|
extern __poll_t isdn_ppp_poll(struct file *, struct poll_table_struct *);
|
||||||
extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
|
extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
|
||||||
extern void isdn_ppp_release(int, struct file *);
|
extern void isdn_ppp_release(int, struct file *);
|
||||||
extern int isdn_ppp_dial_slave(char *);
|
extern int isdn_ppp_dial_slave(char *);
|
||||||
|
|
|
@ -141,11 +141,11 @@ mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
mISDN_poll(struct file *filep, poll_table *wait)
|
mISDN_poll(struct file *filep, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct mISDNtimerdev *dev = filep->private_data;
|
struct mISDNtimerdev *dev = filep->private_data;
|
||||||
unsigned int mask = POLLERR;
|
__poll_t mask = POLLERR;
|
||||||
|
|
||||||
if (*debug & DEBUG_TIMER)
|
if (*debug & DEBUG_TIMER)
|
||||||
printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait);
|
printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait);
|
||||||
|
|
|
@ -176,7 +176,7 @@ static ssize_t uleds_read(struct file *file, char __user *buffer, size_t count,
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int uleds_poll(struct file *file, poll_table *wait)
|
static __poll_t uleds_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct uleds_device *udev = file->private_data;
|
struct uleds_device *udev = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -1245,10 +1245,10 @@ static ssize_t smu_read(struct file *file, char __user *buf,
|
||||||
return -EBADFD;
|
return -EBADFD;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int smu_fpoll(struct file *file, poll_table *wait)
|
static __poll_t smu_fpoll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct smu_private *pp = file->private_data;
|
struct smu_private *pp = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (pp == 0)
|
if (pp == 0)
|
||||||
|
|
|
@ -2157,11 +2157,11 @@ pmu_write(struct file *file, const char __user *buf,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
pmu_fpoll(struct file *filp, poll_table *wait)
|
pmu_fpoll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct pmu_private *pp = filp->private_data;
|
struct pmu_private *pp = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (pp == 0)
|
if (pp == 0)
|
||||||
|
|
|
@ -235,7 +235,7 @@ kfree_err:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
static __poll_t
|
||||||
mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait)
|
mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait)
|
||||||
{
|
{
|
||||||
struct mbox_test_device *tdev = filp->private_data;
|
struct mbox_test_device *tdev = filp->private_data;
|
||||||
|
|
|
@ -1929,10 +1929,10 @@ static int dm_release(struct inode *inode, struct file *filp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned dm_poll(struct file *filp, poll_table *wait)
|
static __poll_t dm_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct dm_file *priv = filp->private_data;
|
struct dm_file *priv = filp->private_data;
|
||||||
unsigned mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &dm_global_eventq, wait);
|
poll_wait(filp, &dm_global_eventq, wait);
|
||||||
|
|
||||||
|
|
|
@ -7869,10 +7869,10 @@ static int md_seq_open(struct inode *inode, struct file *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int md_unloading;
|
static int md_unloading;
|
||||||
static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
|
static __poll_t mdstat_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct seq_file *seq = filp->private_data;
|
struct seq_file *seq = filp->private_data;
|
||||||
int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
if (md_unloading)
|
if (md_unloading)
|
||||||
return POLLIN|POLLRDNORM|POLLERR|POLLPRI;
|
return POLLIN|POLLRDNORM|POLLERR|POLLPRI;
|
||||||
|
|
|
@ -427,7 +427,7 @@ int cxl_fd_mmap(struct file *file, struct vm_area_struct *vm)
|
||||||
return afu_mmap(file, vm);
|
return afu_mmap(file, vm);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(cxl_fd_mmap);
|
EXPORT_SYMBOL_GPL(cxl_fd_mmap);
|
||||||
unsigned int cxl_fd_poll(struct file *file, struct poll_table_struct *poll)
|
__poll_t cxl_fd_poll(struct file *file, struct poll_table_struct *poll)
|
||||||
{
|
{
|
||||||
return afu_poll(file, poll);
|
return afu_poll(file, poll);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1081,7 +1081,7 @@ int afu_open(struct inode *inode, struct file *file);
|
||||||
int afu_release(struct inode *inode, struct file *file);
|
int afu_release(struct inode *inode, struct file *file);
|
||||||
long afu_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
long afu_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
||||||
int afu_mmap(struct file *file, struct vm_area_struct *vm);
|
int afu_mmap(struct file *file, struct vm_area_struct *vm);
|
||||||
unsigned int afu_poll(struct file *file, struct poll_table_struct *poll);
|
__poll_t afu_poll(struct file *file, struct poll_table_struct *poll);
|
||||||
ssize_t afu_read(struct file *file, char __user *buf, size_t count, loff_t *off);
|
ssize_t afu_read(struct file *file, char __user *buf, size_t count, loff_t *off);
|
||||||
extern const struct file_operations afu_fops;
|
extern const struct file_operations afu_fops;
|
||||||
|
|
||||||
|
|
|
@ -354,10 +354,10 @@ static inline bool ctx_event_pending(struct cxl_context *ctx)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int afu_poll(struct file *file, struct poll_table_struct *poll)
|
__poll_t afu_poll(struct file *file, struct poll_table_struct *poll)
|
||||||
{
|
{
|
||||||
struct cxl_context *ctx = file->private_data;
|
struct cxl_context *ctx = file->private_data;
|
||||||
int mask = 0;
|
__poll_t mask = 0;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -514,7 +514,7 @@ static ssize_t ilo_write(struct file *fp, const char __user *buf,
|
||||||
return err ? -EFAULT : len;
|
return err ? -EFAULT : len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int ilo_poll(struct file *fp, poll_table *wait)
|
static __poll_t ilo_poll(struct file *fp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct ccb_data *data = fp->private_data;
|
struct ccb_data *data = fp->private_data;
|
||||||
struct ccb *driver_ccb = &data->driver_ccb;
|
struct ccb *driver_ccb = &data->driver_ccb;
|
||||||
|
|
|
@ -651,7 +651,7 @@ out:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int lis3lv02d_misc_poll(struct file *file, poll_table *wait)
|
static __poll_t lis3lv02d_misc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct lis3lv02d *lis3 = container_of(file->private_data,
|
struct lis3lv02d *lis3 = container_of(file->private_data,
|
||||||
struct lis3lv02d, miscdev);
|
struct lis3lv02d, miscdev);
|
||||||
|
|
|
@ -542,12 +542,12 @@ static long mei_compat_ioctl(struct file *file,
|
||||||
*
|
*
|
||||||
* Return: poll mask
|
* Return: poll mask
|
||||||
*/
|
*/
|
||||||
static unsigned int mei_poll(struct file *file, poll_table *wait)
|
static __poll_t mei_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
__poll_t req_events = poll_requested_events(wait);
|
__poll_t req_events = poll_requested_events(wait);
|
||||||
struct mei_cl *cl = file->private_data;
|
struct mei_cl *cl = file->private_data;
|
||||||
struct mei_device *dev;
|
struct mei_device *dev;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
bool notify_en;
|
bool notify_en;
|
||||||
|
|
||||||
if (WARN_ON(!cl || !cl->dev))
|
if (WARN_ON(!cl || !cl->dev))
|
||||||
|
|
|
@ -1311,10 +1311,10 @@ static inline void _scif_poll_wait(struct file *f, wait_queue_head_t *wq,
|
||||||
spin_lock(&ep->lock);
|
spin_lock(&ep->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int
|
__poll_t
|
||||||
__scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep)
|
__scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep)
|
||||||
{
|
{
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
dev_dbg(scif_info.mdev.this_device,
|
dev_dbg(scif_info.mdev.this_device,
|
||||||
"SCIFAPI pollfd: ep %p %s\n", ep, scif_ep_states[ep->state]);
|
"SCIFAPI pollfd: ep %p %s\n", ep, scif_ep_states[ep->state]);
|
||||||
|
@ -1389,7 +1389,8 @@ scif_poll(struct scif_pollepd *ufds, unsigned int nfds, long timeout_msecs)
|
||||||
{
|
{
|
||||||
struct poll_wqueues table;
|
struct poll_wqueues table;
|
||||||
poll_table *pt;
|
poll_table *pt;
|
||||||
int i, mask, count = 0, timed_out = timeout_msecs == 0;
|
int i, count = 0, timed_out = timeout_msecs == 0;
|
||||||
|
__poll_t mask;
|
||||||
u64 timeout = timeout_msecs < 0 ? MAX_SCHEDULE_TIMEOUT
|
u64 timeout = timeout_msecs < 0 ? MAX_SCHEDULE_TIMEOUT
|
||||||
: msecs_to_jiffies(timeout_msecs);
|
: msecs_to_jiffies(timeout_msecs);
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,7 @@ void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg);
|
||||||
int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block);
|
int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block);
|
||||||
int __scif_flush(scif_epd_t epd);
|
int __scif_flush(scif_epd_t epd);
|
||||||
int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd);
|
int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd);
|
||||||
unsigned int __scif_pollfd(struct file *f, poll_table *wait,
|
__poll_t __scif_pollfd(struct file *f, poll_table *wait,
|
||||||
struct scif_endpt *ep);
|
struct scif_endpt *ep);
|
||||||
int __scif_pin_pages(void *addr, size_t len, int *out_prot,
|
int __scif_pin_pages(void *addr, size_t len, int *out_prot,
|
||||||
int map_flags, scif_pinned_pages_t *pages);
|
int map_flags, scif_pinned_pages_t *pages);
|
||||||
|
|
|
@ -41,7 +41,7 @@ static int scif_fdmmap(struct file *f, struct vm_area_struct *vma)
|
||||||
return scif_mmap(vma, priv);
|
return scif_mmap(vma, priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int scif_fdpoll(struct file *f, poll_table *wait)
|
static __poll_t scif_fdpoll(struct file *f, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct scif_endpt *priv = f->private_data;
|
struct scif_endpt *priv = f->private_data;
|
||||||
|
|
||||||
|
|
|
@ -1023,10 +1023,10 @@ __unlock_ret:
|
||||||
* in the card->host (TX) path, when userspace is unblocked by poll it
|
* in the card->host (TX) path, when userspace is unblocked by poll it
|
||||||
* must drain all available descriptors or it can stall.
|
* must drain all available descriptors or it can stall.
|
||||||
*/
|
*/
|
||||||
static unsigned int vop_poll(struct file *f, poll_table *wait)
|
static __poll_t vop_poll(struct file *f, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct vop_vdev *vdev = f->private_data;
|
struct vop_vdev *vdev = f->private_data;
|
||||||
int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
mutex_lock(&vdev->vdev_mutex);
|
mutex_lock(&vdev->vdev_mutex);
|
||||||
if (vop_vdev_inited(vdev)) {
|
if (vop_vdev_inited(vdev)) {
|
||||||
|
|
|
@ -256,10 +256,10 @@ static int phantom_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int phantom_poll(struct file *file, poll_table *wait)
|
static __poll_t phantom_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct phantom_device *dev = file->private_data;
|
struct phantom_device *dev = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter));
|
pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter));
|
||||||
poll_wait(file, &dev->wait, wait);
|
poll_wait(file, &dev->wait, wait);
|
||||||
|
|
|
@ -166,11 +166,11 @@ static int vmci_host_close(struct inode *inode, struct file *filp)
|
||||||
* This is used to wake up the VMX when a VMCI call arrives, or
|
* This is used to wake up the VMX when a VMCI call arrives, or
|
||||||
* to wake up select() or poll() at the next clock tick.
|
* to wake up select() or poll() at the next clock tick.
|
||||||
*/
|
*/
|
||||||
static unsigned int vmci_host_poll(struct file *filp, poll_table *wait)
|
static __poll_t vmci_host_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct vmci_host_dev *vmci_host_dev = filp->private_data;
|
struct vmci_host_dev *vmci_host_dev = filp->private_data;
|
||||||
struct vmci_ctx *context = vmci_host_dev->context;
|
struct vmci_ctx *context = vmci_host_dev->context;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) {
|
if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) {
|
||||||
/* Check for VMCI calls to this VM context. */
|
/* Check for VMCI calls to this VM context. */
|
||||||
|
|
|
@ -2638,12 +2638,12 @@ static long ca8210_test_int_ioctl(
|
||||||
*
|
*
|
||||||
* Return: set of poll return flags
|
* Return: set of poll return flags
|
||||||
*/
|
*/
|
||||||
static unsigned int ca8210_test_int_poll(
|
static __poll_t ca8210_test_int_poll(
|
||||||
struct file *filp,
|
struct file *filp,
|
||||||
struct poll_table_struct *ptable
|
struct poll_table_struct *ptable
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned int return_flags = 0;
|
__poll_t return_flags = 0;
|
||||||
struct ca8210_priv *priv = filp->private_data;
|
struct ca8210_priv *priv = filp->private_data;
|
||||||
|
|
||||||
poll_wait(filp, &priv->test.readq, ptable);
|
poll_wait(filp, &priv->test.readq, ptable);
|
||||||
|
|
|
@ -334,7 +334,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int
|
static __poll_t
|
||||||
ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
|
ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -531,10 +531,10 @@ static ssize_t ppp_write(struct file *file, const char __user *buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int ppp_poll(struct file *file, poll_table *wait)
|
static __poll_t ppp_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct ppp_file *pf = file->private_data;
|
struct ppp_file *pf = file->private_data;
|
||||||
unsigned int mask;
|
__poll_t mask;
|
||||||
|
|
||||||
if (!pf)
|
if (!pf)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -327,7 +327,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No kernel lock - fine */
|
/* No kernel lock - fine */
|
||||||
static unsigned int
|
static __poll_t
|
||||||
ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
|
ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -572,10 +572,10 @@ static int tap_release(struct inode *inode, struct file *file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int tap_poll(struct file *file, poll_table *wait)
|
static __poll_t tap_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct tap_queue *q = file->private_data;
|
struct tap_queue *q = file->private_data;
|
||||||
unsigned int mask = POLLERR;
|
__poll_t mask = POLLERR;
|
||||||
|
|
||||||
if (!q)
|
if (!q)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
@ -1248,12 +1248,12 @@ static void tun_net_init(struct net_device *dev)
|
||||||
/* Character device part */
|
/* Character device part */
|
||||||
|
|
||||||
/* Poll */
|
/* Poll */
|
||||||
static unsigned int tun_chr_poll(struct file *file, poll_table *wait)
|
static __poll_t tun_chr_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct tun_file *tfile = file->private_data;
|
struct tun_file *tfile = file->private_data;
|
||||||
struct tun_struct *tun = tun_get(tfile);
|
struct tun_struct *tun = tun_get(tfile);
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
if (!tun)
|
if (!tun)
|
||||||
return POLLERR;
|
return POLLERR;
|
||||||
|
|
|
@ -924,7 +924,7 @@ static int chrdev_tx_done(struct channel_data *chan, int size)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int cosa_poll(struct file *file, poll_table *poll)
|
static __poll_t cosa_poll(struct file *file, poll_table *poll)
|
||||||
{
|
{
|
||||||
pr_info("cosa_poll is here\n");
|
pr_info("cosa_poll is here\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -301,7 +301,7 @@ exit:
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int rt2x00debug_poll_queue_dump(struct file *file,
|
static __poll_t rt2x00debug_poll_queue_dump(struct file *file,
|
||||||
poll_table *wait)
|
poll_table *wait)
|
||||||
{
|
{
|
||||||
struct rt2x00debug_intf *intf = file->private_data;
|
struct rt2x00debug_intf *intf = file->private_data;
|
||||||
|
|
|
@ -510,11 +510,11 @@ out:
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int switchtec_dev_poll(struct file *filp, poll_table *wait)
|
static __poll_t switchtec_dev_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct switchtec_user *stuser = filp->private_data;
|
struct switchtec_user *stuser = filp->private_data;
|
||||||
struct switchtec_dev *stdev = stuser->stdev;
|
struct switchtec_dev *stdev = stuser->stdev;
|
||||||
int ret = 0;
|
__poll_t ret = 0;
|
||||||
|
|
||||||
poll_wait(filp, &stuser->comp.wait, wait);
|
poll_wait(filp, &stuser->comp.wait, wait);
|
||||||
poll_wait(filp, &stdev->event_wq, wait);
|
poll_wait(filp, &stdev->event_wq, wait);
|
||||||
|
|
|
@ -191,11 +191,11 @@ error:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int cros_ec_console_log_poll(struct file *file,
|
static __poll_t cros_ec_console_log_poll(struct file *file,
|
||||||
poll_table *wait)
|
poll_table *wait)
|
||||||
{
|
{
|
||||||
struct cros_ec_debugfs *debug_info = file->private_data;
|
struct cros_ec_debugfs *debug_info = file->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(file, &debug_info->log_wq, wait);
|
poll_wait(file, &debug_info->log_wq, wait);
|
||||||
|
|
||||||
|
|
|
@ -536,10 +536,10 @@ static ssize_t goldfish_pipe_write(struct file *filp,
|
||||||
/* is_write */ 1);
|
/* is_write */ 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int goldfish_pipe_poll(struct file *filp, poll_table *wait)
|
static __poll_t goldfish_pipe_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct goldfish_pipe *pipe = filp->private_data;
|
struct goldfish_pipe *pipe = filp->private_data;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
poll_wait(filp, &pipe->wake_queue, wait);
|
poll_wait(filp, &pipe->wake_queue, wait);
|
||||||
|
|
|
@ -4124,7 +4124,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int sonypi_misc_poll(struct file *file, poll_table *wait)
|
static __poll_t sonypi_misc_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
poll_wait(file, &sonypi_compat.fifo_proc_list, wait);
|
poll_wait(file, &sonypi_compat.fifo_proc_list, wait);
|
||||||
if (kfifo_len(&sonypi_compat.fifo))
|
if (kfifo_len(&sonypi_compat.fifo))
|
||||||
|
|
|
@ -49,7 +49,7 @@ static DEFINE_IDR(pps_idr);
|
||||||
* Char device methods
|
* Char device methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static unsigned int pps_cdev_poll(struct file *file, poll_table *wait)
|
static __poll_t pps_cdev_poll(struct file *file, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct pps_device *pps = file->private_data;
|
struct pps_device *pps = file->private_data;
|
||||||
|
|
||||||
|
|
|
@ -280,7 +280,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait)
|
__poll_t ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock);
|
struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock);
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ int ptp_open(struct posix_clock *pc, fmode_t fmode);
|
||||||
ssize_t ptp_read(struct posix_clock *pc,
|
ssize_t ptp_read(struct posix_clock *pc,
|
||||||
uint flags, char __user *buf, size_t cnt);
|
uint flags, char __user *buf, size_t cnt);
|
||||||
|
|
||||||
uint ptp_poll(struct posix_clock *pc,
|
__poll_t ptp_poll(struct posix_clock *pc,
|
||||||
struct file *fp, poll_table *wait);
|
struct file *fp, poll_table *wait);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2319,7 +2319,7 @@ static int mport_cdev_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int mport_cdev_poll(struct file *filp, poll_table *wait)
|
static __poll_t mport_cdev_poll(struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct mport_cdev_priv *priv = filp->private_data;
|
struct mport_cdev_priv *priv = filp->private_data;
|
||||||
|
|
||||||
|
|
|
@ -919,12 +919,12 @@ static int qcom_smd_trysend(struct rpmsg_endpoint *ept, void *data, int len)
|
||||||
return __qcom_smd_send(qsept->qsch, data, len, false);
|
return __qcom_smd_send(qsept->qsch, data, len, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int qcom_smd_poll(struct rpmsg_endpoint *ept,
|
static __poll_t qcom_smd_poll(struct rpmsg_endpoint *ept,
|
||||||
struct file *filp, poll_table *wait)
|
struct file *filp, poll_table *wait)
|
||||||
{
|
{
|
||||||
struct qcom_smd_endpoint *qsept = to_smd_endpoint(ept);
|
struct qcom_smd_endpoint *qsept = to_smd_endpoint(ept);
|
||||||
struct qcom_smd_channel *channel = qsept->qsch;
|
struct qcom_smd_channel *channel = qsept->qsch;
|
||||||
unsigned int mask = 0;
|
__poll_t mask = 0;
|
||||||
|
|
||||||
poll_wait(filp, &channel->fblockread_event, wait);
|
poll_wait(filp, &channel->fblockread_event, wait);
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue