diff options
Diffstat (limited to 'drivers')
141 files changed, 253 insertions, 252 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index a73596a4f804..fdc951083b07 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c | |||
@@ -4276,7 +4276,7 @@ static int binder_thread_release(struct binder_proc *proc, | |||
4276 | return active_transactions; | 4276 | return active_transactions; |
4277 | } | 4277 | } |
4278 | 4278 | ||
4279 | static unsigned int binder_poll(struct file *filp, | 4279 | static __poll_t binder_poll(struct file *filp, |
4280 | struct poll_table_struct *wait) | 4280 | struct poll_table_struct *wait) |
4281 | { | 4281 | { |
4282 | struct binder_proc *proc = filp->private_data; | 4282 | struct binder_proc *proc = filp->private_data; |
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index c823914b3a80..b6a71705b7d6 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -794,7 +794,7 @@ static ssize_t hci_uart_tty_write(struct tty_struct *tty, struct file *file, | |||
794 | return 0; | 794 | return 0; |
795 | } | 795 | } |
796 | 796 | ||
797 | static unsigned int hci_uart_tty_poll(struct tty_struct *tty, | 797 | static __poll_t hci_uart_tty_poll(struct tty_struct *tty, |
798 | struct file *filp, poll_table *wait) | 798 | struct file *filp, poll_table *wait) |
799 | { | 799 | { |
800 | return 0; | 800 | return 0; |
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index e6f6dbc04131..0521748a1972 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
@@ -299,7 +299,7 @@ static ssize_t vhci_write(struct kiocb *iocb, struct iov_iter *from) | |||
299 | return vhci_get_user(data, from); | 299 | return vhci_get_user(data, from); |
300 | } | 300 | } |
301 | 301 | ||
302 | static unsigned int vhci_poll(struct file *file, poll_table *wait) | 302 | static __poll_t vhci_poll(struct file *file, poll_table *wait) |
303 | { | 303 | { |
304 | struct vhci_data *data = file->private_data; | 304 | struct vhci_data *data = file->private_data; |
305 | 305 | ||
diff --git a/drivers/char/apm-emulation.c b/drivers/char/apm-emulation.c index 1dfb9f8de171..a2a1c1478cd0 100644 --- a/drivers/char/apm-emulation.c +++ b/drivers/char/apm-emulation.c | |||
@@ -236,7 +236,7 @@ static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t | |||
236 | return ret; | 236 | return ret; |
237 | } | 237 | } |
238 | 238 | ||
239 | static unsigned int apm_poll(struct file *fp, poll_table * wait) | 239 | static __poll_t apm_poll(struct file *fp, poll_table * wait) |
240 | { | 240 | { |
241 | struct apm_user *as = fp->private_data; | 241 | struct apm_user *as = fp->private_data; |
242 | 242 | ||
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c index 0d7b577e0ff0..2f92cc46698b 100644 --- a/drivers/char/dsp56k.c +++ b/drivers/char/dsp56k.c | |||
@@ -406,7 +406,7 @@ static long dsp56k_ioctl(struct file *file, unsigned int cmd, | |||
406 | * Do I need this function at all??? | 406 | * Do I need this function at all??? |
407 | */ | 407 | */ |
408 | #if 0 | 408 | #if 0 |
409 | static unsigned int dsp56k_poll(struct file *file, poll_table *wait) | 409 | static __poll_t dsp56k_poll(struct file *file, poll_table *wait) |
410 | { | 410 | { |
411 | int dev = iminor(file_inode(file)) & 0x0f; | 411 | int dev = iminor(file_inode(file)) & 0x0f; |
412 | 412 | ||
diff --git a/drivers/char/dtlk.c b/drivers/char/dtlk.c index 839ee61d352a..2697c22e3be2 100644 --- a/drivers/char/dtlk.c +++ b/drivers/char/dtlk.c | |||
@@ -91,7 +91,7 @@ static ssize_t dtlk_read(struct file *, char __user *, | |||
91 | size_t nbytes, loff_t * ppos); | 91 | size_t nbytes, loff_t * ppos); |
92 | static ssize_t dtlk_write(struct file *, const char __user *, | 92 | static ssize_t dtlk_write(struct file *, const char __user *, |
93 | size_t nbytes, loff_t * ppos); | 93 | size_t nbytes, loff_t * ppos); |
94 | static unsigned int dtlk_poll(struct file *, poll_table *); | 94 | static __poll_t dtlk_poll(struct file *, poll_table *); |
95 | static int dtlk_open(struct inode *, struct file *); | 95 | static int dtlk_open(struct inode *, struct file *); |
96 | static int dtlk_release(struct inode *, struct file *); | 96 | static int dtlk_release(struct inode *, struct file *); |
97 | static long dtlk_ioctl(struct file *file, | 97 | static long dtlk_ioctl(struct file *file, |
@@ -228,9 +228,9 @@ static ssize_t dtlk_write(struct file *file, const char __user *buf, | |||
228 | return -EAGAIN; | 228 | return -EAGAIN; |
229 | } | 229 | } |
230 | 230 | ||
231 | static unsigned int dtlk_poll(struct file *file, poll_table * wait) | 231 | static __poll_t dtlk_poll(struct file *file, poll_table * wait) |
232 | { | 232 | { |
233 | int mask = 0; | 233 | __poll_t mask = 0; |
234 | unsigned long expires; | 234 | unsigned long expires; |
235 | 235 | ||
236 | TRACE_TEXT(" dtlk_poll"); | 236 | TRACE_TEXT(" dtlk_poll"); |
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index b941e6d59fd6..dbed4953f86c 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -342,7 +342,7 @@ out: | |||
342 | return retval; | 342 | return retval; |
343 | } | 343 | } |
344 | 344 | ||
345 | static unsigned int hpet_poll(struct file *file, poll_table * wait) | 345 | static __poll_t hpet_poll(struct file *file, poll_table * wait) |
346 | { | 346 | { |
347 | unsigned long v; | 347 | unsigned long v; |
348 | struct hpet_dev *devp; | 348 | struct hpet_dev *devp; |
diff --git a/drivers/char/ipmi/bt-bmc.c b/drivers/char/ipmi/bt-bmc.c index 6edfaa72b98b..7992c870b0a2 100644 --- a/drivers/char/ipmi/bt-bmc.c +++ b/drivers/char/ipmi/bt-bmc.c | |||
@@ -338,10 +338,10 @@ static int bt_bmc_release(struct inode *inode, struct file *file) | |||
338 | return 0; | 338 | return 0; |
339 | } | 339 | } |
340 | 340 | ||
341 | static unsigned int bt_bmc_poll(struct file *file, poll_table *wait) | 341 | static __poll_t bt_bmc_poll(struct file *file, poll_table *wait) |
342 | { | 342 | { |
343 | struct bt_bmc *bt_bmc = file_bt_bmc(file); | 343 | struct bt_bmc *bt_bmc = file_bt_bmc(file); |
344 | unsigned int mask = 0; | 344 | __poll_t mask = 0; |
345 | u8 ctrl; | 345 | u8 ctrl; |
346 | 346 | ||
347 | poll_wait(file, &bt_bmc->queue, wait); | 347 | poll_wait(file, &bt_bmc->queue, wait); |
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c index 2ffca4232686..a011a7739f5e 100644 --- a/drivers/char/ipmi/ipmi_devintf.c +++ b/drivers/char/ipmi/ipmi_devintf.c | |||
@@ -78,10 +78,10 @@ static void file_receive_handler(struct ipmi_recv_msg *msg, | |||
78 | spin_unlock_irqrestore(&(priv->recv_msg_lock), flags); | 78 | spin_unlock_irqrestore(&(priv->recv_msg_lock), flags); |
79 | } | 79 | } |
80 | 80 | ||
81 | static unsigned int ipmi_poll(struct file *file, poll_table *wait) | 81 | static __poll_t ipmi_poll(struct file *file, poll_table *wait) |
82 | { | 82 | { |
83 | struct ipmi_file_private *priv = file->private_data; | 83 | struct ipmi_file_private *priv = file->private_data; |
84 | unsigned int mask = 0; | 84 | __poll_t mask = 0; |
85 | unsigned long flags; | 85 | unsigned long flags; |
86 | 86 | ||
87 | poll_wait(file, &priv->wait, wait); | 87 | poll_wait(file, &priv->wait, wait); |
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 76b270678b50..95d8e9a53e91 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c | |||
@@ -887,9 +887,9 @@ static int ipmi_open(struct inode *ino, struct file *filep) | |||
887 | } | 887 | } |
888 | } | 888 | } |
889 | 889 | ||
890 | static unsigned int ipmi_poll(struct file *file, poll_table *wait) | 890 | static __poll_t ipmi_poll(struct file *file, poll_table *wait) |
891 | { | 891 | { |
892 | unsigned int mask = 0; | 892 | __poll_t mask = 0; |
893 | 893 | ||
894 | poll_wait(file, &read_q, wait); | 894 | poll_wait(file, &read_q, wait); |
895 | 895 | ||
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c index 9a1aaf538758..819fe37a3683 100644 --- a/drivers/char/pcmcia/cm4040_cs.c +++ b/drivers/char/pcmcia/cm4040_cs.c | |||
@@ -415,10 +415,10 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf, | |||
415 | return count; | 415 | return count; |
416 | } | 416 | } |
417 | 417 | ||
418 | static unsigned int cm4040_poll(struct file *filp, poll_table *wait) | 418 | static __poll_t cm4040_poll(struct file *filp, poll_table *wait) |
419 | { | 419 | { |
420 | struct reader_dev *dev = filp->private_data; | 420 | struct reader_dev *dev = filp->private_data; |
421 | unsigned int mask = 0; | 421 | __poll_t mask = 0; |
422 | 422 | ||
423 | poll_wait(filp, &dev->poll_wait, wait); | 423 | poll_wait(filp, &dev->poll_wait, wait); |
424 | 424 | ||
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index d256110ba672..7a56d1a13ec3 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c | |||
@@ -769,10 +769,10 @@ static int pp_release(struct inode *inode, struct file *file) | |||
769 | } | 769 | } |
770 | 770 | ||
771 | /* No kernel lock held - fine */ | 771 | /* No kernel lock held - fine */ |
772 | static unsigned int pp_poll(struct file *file, poll_table *wait) | 772 | static __poll_t pp_poll(struct file *file, poll_table *wait) |
773 | { | 773 | { |
774 | struct pp_struct *pp = file->private_data; | 774 | struct pp_struct *pp = file->private_data; |
775 | unsigned int mask = 0; | 775 | __poll_t mask = 0; |
776 | 776 | ||
777 | poll_wait(file, &pp->irq_wait, wait); | 777 | poll_wait(file, &pp->irq_wait, wait); |
778 | if (atomic_read(&pp->irqc)) | 778 | if (atomic_read(&pp->irqc)) |
diff --git a/drivers/char/random.c b/drivers/char/random.c index ec42c8bb9b0d..64b59562c872 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -1784,10 +1784,10 @@ urandom_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) | |||
1784 | return ret; | 1784 | return ret; |
1785 | } | 1785 | } |
1786 | 1786 | ||
1787 | static unsigned int | 1787 | static __poll_t |
1788 | random_poll(struct file *file, poll_table * wait) | 1788 | random_poll(struct file *file, poll_table * wait) |
1789 | { | 1789 | { |
1790 | unsigned int mask; | 1790 | __poll_t mask; |
1791 | 1791 | ||
1792 | poll_wait(file, &random_read_wait, wait); | 1792 | poll_wait(file, &random_read_wait, wait); |
1793 | poll_wait(file, &random_write_wait, wait); | 1793 | poll_wait(file, &random_write_wait, wait); |
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 5542a438bbd0..c6a317120a55 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -147,7 +147,7 @@ static long rtc_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | |||
147 | static void rtc_get_rtc_time(struct rtc_time *rtc_tm); | 147 | static void rtc_get_rtc_time(struct rtc_time *rtc_tm); |
148 | 148 | ||
149 | #ifdef RTC_IRQ | 149 | #ifdef RTC_IRQ |
150 | static unsigned int rtc_poll(struct file *file, poll_table *wait); | 150 | static __poll_t rtc_poll(struct file *file, poll_table *wait); |
151 | #endif | 151 | #endif |
152 | 152 | ||
153 | static void get_rtc_alm_time(struct rtc_time *alm_tm); | 153 | static void get_rtc_alm_time(struct rtc_time *alm_tm); |
@@ -790,7 +790,7 @@ no_irq: | |||
790 | } | 790 | } |
791 | 791 | ||
792 | #ifdef RTC_IRQ | 792 | #ifdef RTC_IRQ |
793 | static unsigned int rtc_poll(struct file *file, poll_table *wait) | 793 | static __poll_t rtc_poll(struct file *file, poll_table *wait) |
794 | { | 794 | { |
795 | unsigned long l; | 795 | unsigned long l; |
796 | 796 | ||
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c index 6aa32679fd58..7f49fa0f41d7 100644 --- a/drivers/char/snsc.c +++ b/drivers/char/snsc.c | |||
@@ -321,10 +321,10 @@ scdrv_write(struct file *file, const char __user *buf, | |||
321 | return status; | 321 | return status; |
322 | } | 322 | } |
323 | 323 | ||
324 | static unsigned int | 324 | static __poll_t |
325 | scdrv_poll(struct file *file, struct poll_table_struct *wait) | 325 | scdrv_poll(struct file *file, struct poll_table_struct *wait) |
326 | { | 326 | { |
327 | unsigned int mask = 0; | 327 | __poll_t mask = 0; |
328 | int status = 0; | 328 | int status = 0; |
329 | struct subch_data_s *sd = (struct subch_data_s *) file->private_data; | 329 | struct subch_data_s *sd = (struct subch_data_s *) file->private_data; |
330 | unsigned long flags; | 330 | unsigned long flags; |
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index d3a979e25724..fc041c462aa4 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -940,7 +940,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, | |||
940 | return ret; | 940 | return ret; |
941 | } | 941 | } |
942 | 942 | ||
943 | static unsigned int sonypi_misc_poll(struct file *file, poll_table *wait) | 943 | static __poll_t sonypi_misc_poll(struct file *file, poll_table *wait) |
944 | { | 944 | { |
945 | poll_wait(file, &sonypi_device.fifo_proc_list, wait); | 945 | poll_wait(file, &sonypi_device.fifo_proc_list, wait); |
946 | if (kfifo_len(&sonypi_device.fifo)) | 946 | if (kfifo_len(&sonypi_device.fifo)) |
diff --git a/drivers/char/tpm/tpm_vtpm_proxy.c b/drivers/char/tpm/tpm_vtpm_proxy.c index 1d877cc9af97..674218b50b13 100644 --- a/drivers/char/tpm/tpm_vtpm_proxy.c +++ b/drivers/char/tpm/tpm_vtpm_proxy.c | |||
@@ -173,10 +173,10 @@ static ssize_t vtpm_proxy_fops_write(struct file *filp, const char __user *buf, | |||
173 | * | 173 | * |
174 | * Return: Poll flags | 174 | * Return: Poll flags |
175 | */ | 175 | */ |
176 | static unsigned int vtpm_proxy_fops_poll(struct file *filp, poll_table *wait) | 176 | static __poll_t vtpm_proxy_fops_poll(struct file *filp, poll_table *wait) |
177 | { | 177 | { |
178 | struct proxy_dev *proxy_dev = filp->private_data; | 178 | struct proxy_dev *proxy_dev = filp->private_data; |
179 | unsigned ret; | 179 | __poll_t ret; |
180 | 180 | ||
181 | poll_wait(filp, &proxy_dev->wq, wait); | 181 | poll_wait(filp, &proxy_dev->wq, wait); |
182 | 182 | ||
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index d1aed2513bd9..813a2e46824d 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -982,10 +982,10 @@ error_out: | |||
982 | return ret; | 982 | return ret; |
983 | } | 983 | } |
984 | 984 | ||
985 | static unsigned int port_fops_poll(struct file *filp, poll_table *wait) | 985 | static __poll_t port_fops_poll(struct file *filp, poll_table *wait) |
986 | { | 986 | { |
987 | struct port *port; | 987 | struct port *port; |
988 | unsigned int ret; | 988 | __poll_t ret; |
989 | 989 | ||
990 | port = filp->private_data; | 990 | port = filp->private_data; |
991 | poll_wait(filp, &port->waitqueue, wait); | 991 | poll_wait(filp, &port->waitqueue, wait); |
diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c index b6c9cdead7f3..88e1cf475d3f 100644 --- a/drivers/char/xillybus/xillybus_core.c +++ b/drivers/char/xillybus/xillybus_core.c | |||
@@ -1736,10 +1736,10 @@ end: | |||
1736 | return pos; | 1736 | return pos; |
1737 | } | 1737 | } |
1738 | 1738 | ||
1739 | static unsigned int xillybus_poll(struct file *filp, poll_table *wait) | 1739 | static __poll_t xillybus_poll(struct file *filp, poll_table *wait) |
1740 | { | 1740 | { |
1741 | struct xilly_channel *channel = filp->private_data; | 1741 | struct xilly_channel *channel = filp->private_data; |
1742 | unsigned int mask = 0; | 1742 | __poll_t mask = 0; |
1743 | unsigned long flags; | 1743 | unsigned long flags; |
1744 | 1744 | ||
1745 | poll_wait(filp, &channel->endpoint->ep_wait, wait); | 1745 | poll_wait(filp, &channel->endpoint->ep_wait, wait); |
diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 4f313593caf5..12b62d0aac27 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c | |||
@@ -157,7 +157,7 @@ static void dma_buf_poll_cb(struct dma_fence *fence, struct dma_fence_cb *cb) | |||
157 | spin_unlock_irqrestore(&dcb->poll->lock, flags); | 157 | spin_unlock_irqrestore(&dcb->poll->lock, flags); |
158 | } | 158 | } |
159 | 159 | ||
160 | static unsigned int dma_buf_poll(struct file *file, poll_table *poll) | 160 | static __poll_t dma_buf_poll(struct file *file, poll_table *poll) |
161 | { | 161 | { |
162 | struct dma_buf *dmabuf; | 162 | struct dma_buf *dmabuf; |
163 | struct reservation_object *resv; | 163 | struct reservation_object *resv; |
@@ -195,7 +195,7 @@ retry: | |||
195 | 195 | ||
196 | if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) { | 196 | if (fence_excl && (!(events & POLLOUT) || shared_count == 0)) { |
197 | struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; | 197 | struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; |
198 | unsigned long pevents = POLLIN; | 198 | __poll_t pevents = POLLIN; |
199 | 199 | ||
200 | if (shared_count == 0) | 200 | if (shared_count == 0) |
201 | pevents |= POLLOUT; | 201 | pevents |= POLLOUT; |
diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index 03830634e141..8e8c4a12a0bc 100644 --- a/drivers/dma-buf/sync_file.c +++ b/drivers/dma-buf/sync_file.c | |||
@@ -312,7 +312,7 @@ static int sync_file_release(struct inode *inode, struct file *file) | |||
312 | return 0; | 312 | return 0; |
313 | } | 313 | } |
314 | 314 | ||
315 | static unsigned int sync_file_poll(struct file *file, poll_table *wait) | 315 | static __poll_t sync_file_poll(struct file *file, poll_table *wait) |
316 | { | 316 | { |
317 | struct sync_file *sync_file = file->private_data; | 317 | struct sync_file *sync_file = file->private_data; |
318 | 318 | ||
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index a301fcf46e88..523391bb3fbe 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c | |||
@@ -1784,10 +1784,10 @@ static int fw_device_op_release(struct inode *inode, struct file *file) | |||
1784 | return 0; | 1784 | return 0; |
1785 | } | 1785 | } |
1786 | 1786 | ||
1787 | static unsigned int fw_device_op_poll(struct file *file, poll_table * pt) | 1787 | static __poll_t fw_device_op_poll(struct file *file, poll_table * pt) |
1788 | { | 1788 | { |
1789 | struct client *client = file->private_data; | 1789 | struct client *client = file->private_data; |
1790 | unsigned int mask = 0; | 1790 | __poll_t mask = 0; |
1791 | 1791 | ||
1792 | poll_wait(file, &client->wait, pt); | 1792 | poll_wait(file, &client->wait, pt); |
1793 | 1793 | ||
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index 180f0a96528c..fee2e9e7ea20 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c | |||
@@ -328,11 +328,11 @@ nosy_release(struct inode *inode, struct file *file) | |||
328 | return 0; | 328 | return 0; |
329 | } | 329 | } |
330 | 330 | ||
331 | static unsigned int | 331 | static __poll_t |
332 | nosy_poll(struct file *file, poll_table *pt) | 332 | nosy_poll(struct file *file, poll_table *pt) |
333 | { | 333 | { |
334 | struct client *client = file->private_data; | 334 | struct client *client = file->private_data; |
335 | unsigned int ret = 0; | 335 | __poll_t ret = 0; |
336 | 336 | ||
337 | poll_wait(file, &client->buffer.wait, pt); | 337 | poll_wait(file, &client->buffer.wait, pt); |
338 | 338 | ||
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index aad84a6306c4..46824c486e1e 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -603,11 +603,11 @@ struct lineevent_state { | |||
603 | (GPIOEVENT_REQUEST_RISING_EDGE | \ | 603 | (GPIOEVENT_REQUEST_RISING_EDGE | \ |
604 | GPIOEVENT_REQUEST_FALLING_EDGE) | 604 | GPIOEVENT_REQUEST_FALLING_EDGE) |
605 | 605 | ||
606 | static unsigned int lineevent_poll(struct file *filep, | 606 | static __poll_t lineevent_poll(struct file *filep, |
607 | struct poll_table_struct *wait) | 607 | struct poll_table_struct *wait) |
608 | { | 608 | { |
609 | struct lineevent_state *le = filep->private_data; | 609 | struct lineevent_state *le = filep->private_data; |
610 | unsigned int events = 0; | 610 | __poll_t events = 0; |
611 | 611 | ||
612 | poll_wait(filep, &le->wait, wait); | 612 | poll_wait(filep, &le->wait, wait); |
613 | 613 | ||
diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c index b3c6e997ccdb..9a17bd3639d1 100644 --- a/drivers/gpu/drm/drm_file.c +++ b/drivers/gpu/drm/drm_file.c | |||
@@ -559,10 +559,10 @@ EXPORT_SYMBOL(drm_read); | |||
559 | * | 559 | * |
560 | * Mask of POLL flags indicating the current status of the file. | 560 | * Mask of POLL flags indicating the current status of the file. |
561 | */ | 561 | */ |
562 | unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait) | 562 | __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait) |
563 | { | 563 | { |
564 | struct drm_file *file_priv = filp->private_data; | 564 | struct drm_file *file_priv = filp->private_data; |
565 | unsigned int mask = 0; | 565 | __poll_t mask = 0; |
566 | 566 | ||
567 | poll_wait(filp, &file_priv->event_wait, wait); | 567 | poll_wait(filp, &file_priv->event_wait, wait); |
568 | 568 | ||
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c index 59ee808f8fd9..d453756ca128 100644 --- a/drivers/gpu/drm/i915/i915_perf.c +++ b/drivers/gpu/drm/i915/i915_perf.c | |||
@@ -2331,12 +2331,12 @@ static enum hrtimer_restart oa_poll_check_timer_cb(struct hrtimer *hrtimer) | |||
2331 | * | 2331 | * |
2332 | * Returns: any poll events that are ready without sleeping | 2332 | * Returns: any poll events that are ready without sleeping |
2333 | */ | 2333 | */ |
2334 | static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv, | 2334 | static __poll_t i915_perf_poll_locked(struct drm_i915_private *dev_priv, |
2335 | struct i915_perf_stream *stream, | 2335 | struct i915_perf_stream *stream, |
2336 | struct file *file, | 2336 | struct file *file, |
2337 | poll_table *wait) | 2337 | poll_table *wait) |
2338 | { | 2338 | { |
2339 | unsigned int events = 0; | 2339 | __poll_t events = 0; |
2340 | 2340 | ||
2341 | stream->ops->poll_wait(stream, file, wait); | 2341 | stream->ops->poll_wait(stream, file, wait); |
2342 | 2342 | ||
@@ -2365,11 +2365,11 @@ static unsigned int i915_perf_poll_locked(struct drm_i915_private *dev_priv, | |||
2365 | * | 2365 | * |
2366 | * Returns: any poll events that are ready without sleeping | 2366 | * Returns: any poll events that are ready without sleeping |
2367 | */ | 2367 | */ |
2368 | static unsigned int i915_perf_poll(struct file *file, poll_table *wait) | 2368 | static __poll_t i915_perf_poll(struct file *file, poll_table *wait) |
2369 | { | 2369 | { |
2370 | struct i915_perf_stream *stream = file->private_data; | 2370 | struct i915_perf_stream *stream = file->private_data; |
2371 | struct drm_i915_private *dev_priv = stream->dev_priv; | 2371 | struct drm_i915_private *dev_priv = stream->dev_priv; |
2372 | int ret; | 2372 | __poll_t ret; |
2373 | 2373 | ||
2374 | mutex_lock(&dev_priv->perf.lock); | 2374 | mutex_lock(&dev_priv->perf.lock); |
2375 | ret = i915_perf_poll_locked(dev_priv, stream, file, wait); | 2375 | ret = i915_perf_poll_locked(dev_priv, stream, file, wait); |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index 7e5f30e234b1..d08753e8fd94 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |||
@@ -713,7 +713,7 @@ extern int vmw_present_ioctl(struct drm_device *dev, void *data, | |||
713 | struct drm_file *file_priv); | 713 | struct drm_file *file_priv); |
714 | extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, | 714 | extern int vmw_present_readback_ioctl(struct drm_device *dev, void *data, |
715 | struct drm_file *file_priv); | 715 | struct drm_file *file_priv); |
716 | extern unsigned int vmw_fops_poll(struct file *filp, | 716 | extern __poll_t vmw_fops_poll(struct file *filp, |
717 | struct poll_table_struct *wait); | 717 | struct poll_table_struct *wait); |
718 | extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer, | 718 | extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer, |
719 | size_t count, loff_t *offset); | 719 | size_t count, loff_t *offset); |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index 01be355525e4..67f844678ac8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | |||
@@ -412,7 +412,7 @@ out_clips: | |||
412 | * Wrapper around the drm_poll function that makes sure the device is | 412 | * Wrapper around the drm_poll function that makes sure the device is |
413 | * processing the fifo if drm_poll decides to wait. | 413 | * processing the fifo if drm_poll decides to wait. |
414 | */ | 414 | */ |
415 | unsigned int vmw_fops_poll(struct file *filp, struct poll_table_struct *wait) | 415 | __poll_t vmw_fops_poll(struct file *filp, struct poll_table_struct *wait) |
416 | { | 416 | { |
417 | struct drm_file *file_priv = filp->private_data; | 417 | struct drm_file *file_priv = filp->private_data; |
418 | struct vmw_private *dev_priv = | 418 | struct vmw_private *dev_priv = |
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index d35d6d271f3f..dfd8d0048980 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c | |||
@@ -1266,7 +1266,7 @@ done: | |||
1266 | return ret_val; | 1266 | return ret_val; |
1267 | } | 1267 | } |
1268 | 1268 | ||
1269 | static unsigned int vga_arb_fpoll(struct file *file, poll_table *wait) | 1269 | static __poll_t vga_arb_fpoll(struct file *file, poll_table *wait) |
1270 | { | 1270 | { |
1271 | pr_debug("%s\n", __func__); | 1271 | pr_debug("%s\n", __func__); |
1272 | 1272 | ||
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 5271db593478..c783fd5ef809 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c | |||
@@ -1179,7 +1179,7 @@ out: | |||
1179 | return ret; | 1179 | return ret; |
1180 | } | 1180 | } |
1181 | 1181 | ||
1182 | static unsigned int hid_debug_events_poll(struct file *file, poll_table *wait) | 1182 | static __poll_t hid_debug_events_poll(struct file *file, poll_table *wait) |
1183 | { | 1183 | { |
1184 | struct hid_debug_list *list = file->private_data; | 1184 | struct hid_debug_list *list = file->private_data; |
1185 | 1185 | ||
diff --git a/drivers/hid/hid-roccat.c b/drivers/hid/hid-roccat.c index fb77dec720a4..b7e86aba6f33 100644 --- a/drivers/hid/hid-roccat.c +++ b/drivers/hid/hid-roccat.c | |||
@@ -137,7 +137,7 @@ exit_unlock: | |||
137 | return retval; | 137 | return retval; |
138 | } | 138 | } |
139 | 139 | ||
140 | static unsigned int roccat_poll(struct file *file, poll_table *wait) | 140 | static __poll_t roccat_poll(struct file *file, poll_table *wait) |
141 | { | 141 | { |
142 | struct roccat_reader *reader = file->private_data; | 142 | struct roccat_reader *reader = file->private_data; |
143 | poll_wait(file, &reader->device->wait, wait); | 143 | poll_wait(file, &reader->device->wait, wait); |
diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c index 0bcf041368c7..21ed6c55c40a 100644 --- a/drivers/hid/hid-sensor-custom.c +++ b/drivers/hid/hid-sensor-custom.c | |||
@@ -702,11 +702,11 @@ static int hid_sensor_custom_open(struct inode *inode, struct file *file) | |||
702 | return nonseekable_open(inode, file); | 702 | return nonseekable_open(inode, file); |
703 | } | 703 | } |
704 | 704 | ||
705 | static unsigned int hid_sensor_custom_poll(struct file *file, | 705 | static __poll_t hid_sensor_custom_poll(struct file *file, |
706 | struct poll_table_struct *wait) | 706 | struct poll_table_struct *wait) |
707 | { | 707 | { |
708 | struct hid_sensor_custom *sensor_inst; | 708 | struct hid_sensor_custom *sensor_inst; |
709 | unsigned int mask = 0; | 709 | __poll_t mask = 0; |
710 | 710 | ||
711 | sensor_inst = container_of(file->private_data, | 711 | sensor_inst = container_of(file->private_data, |
712 | struct hid_sensor_custom, custom_dev); | 712 | struct hid_sensor_custom, custom_dev); |
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 5fbe0f81ab2e..be210219f982 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
@@ -249,7 +249,7 @@ out: | |||
249 | return ret; | 249 | return ret; |
250 | } | 250 | } |
251 | 251 | ||
252 | static unsigned int hidraw_poll(struct file *file, poll_table *wait) | 252 | static __poll_t hidraw_poll(struct file *file, poll_table *wait) |
253 | { | 253 | { |
254 | struct hidraw_list *list = file->private_data; | 254 | struct hidraw_list *list = file->private_data; |
255 | 255 | ||
diff --git a/drivers/hid/uhid.c b/drivers/hid/uhid.c index 6f819f144cb4..fc43850a155e 100644 --- a/drivers/hid/uhid.c +++ b/drivers/hid/uhid.c | |||
@@ -753,7 +753,7 @@ unlock: | |||
753 | return ret ? ret : count; | 753 | return ret ? ret : count; |
754 | } | 754 | } |
755 | 755 | ||
756 | static unsigned int uhid_char_poll(struct file *file, poll_table *wait) | 756 | static __poll_t uhid_char_poll(struct file *file, poll_table *wait) |
757 | { | 757 | { |
758 | struct uhid_device *uhid = file->private_data; | 758 | struct uhid_device *uhid = file->private_data; |
759 | 759 | ||
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c index 7d749b19c27c..0ff3e7e70c8d 100644 --- a/drivers/hid/usbhid/hiddev.c +++ b/drivers/hid/usbhid/hiddev.c | |||
@@ -422,7 +422,7 @@ static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t coun | |||
422 | * "poll" file op | 422 | * "poll" file op |
423 | * No kernel lock - fine | 423 | * No kernel lock - fine |
424 | */ | 424 | */ |
425 | static unsigned int hiddev_poll(struct file *file, poll_table *wait) | 425 | static __poll_t hiddev_poll(struct file *file, poll_table *wait) |
426 | { | 426 | { |
427 | struct hiddev_list *list = file->private_data; | 427 | struct hiddev_list *list = file->private_data; |
428 | 428 | ||
diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 727f968ac1cb..e6ad3de6c975 100644 --- a/drivers/hsi/clients/cmt_speech.c +++ b/drivers/hsi/clients/cmt_speech.c | |||
@@ -1124,10 +1124,10 @@ static int cs_char_fasync(int fd, struct file *file, int on) | |||
1124 | return 0; | 1124 | return 0; |
1125 | } | 1125 | } |
1126 | 1126 | ||
1127 | static unsigned int cs_char_poll(struct file *file, poll_table *wait) | 1127 | static __poll_t cs_char_poll(struct file *file, poll_table *wait) |
1128 | { | 1128 | { |
1129 | struct cs_char *csdata = file->private_data; | 1129 | struct cs_char *csdata = file->private_data; |
1130 | unsigned int ret = 0; | 1130 | __poll_t ret = 0; |
1131 | 1131 | ||
1132 | poll_wait(file, &cs_char_data.wait, wait); | 1132 | poll_wait(file, &cs_char_data.wait, wait); |
1133 | spin_lock_bh(&csdata->lock); | 1133 | spin_lock_bh(&csdata->lock); |
diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transport.c index 4402a71e23f7..047959e74bb1 100644 --- a/drivers/hv/hv_utils_transport.c +++ b/drivers/hv/hv_utils_transport.c | |||
@@ -104,7 +104,7 @@ static ssize_t hvt_op_write(struct file *file, const char __user *buf, | |||
104 | return ret ? ret : count; | 104 | return ret ? ret : count; |
105 | } | 105 | } |
106 | 106 | ||
107 | static unsigned int hvt_op_poll(struct file *file, poll_table *wait) | 107 | static __poll_t hvt_op_poll(struct file *file, poll_table *wait) |
108 | { | 108 | { |
109 | struct hvutil_transport *hvt; | 109 | struct hvutil_transport *hvt; |
110 | 110 | ||
diff --git a/drivers/iio/iio_core.h b/drivers/iio/iio_core.h index 4c45488e3a7f..c775fedbcaf6 100644 --- a/drivers/iio/iio_core.h +++ b/drivers/iio/iio_core.h | |||
@@ -43,7 +43,7 @@ ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals); | |||
43 | #ifdef CONFIG_IIO_BUFFER | 43 | #ifdef CONFIG_IIO_BUFFER |
44 | struct poll_table_struct; | 44 | struct poll_table_struct; |
45 | 45 | ||
46 | unsigned int iio_buffer_poll(struct file *filp, | 46 | __poll_t iio_buffer_poll(struct file *filp, |
47 | struct poll_table_struct *wait); | 47 | struct poll_table_struct *wait); |
48 | ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf, | 48 | ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf, |
49 | size_t n, loff_t *f_ps); | 49 | size_t n, loff_t *f_ps); |
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index d2b465140a6b..0bc2fe31f211 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
@@ -169,7 +169,7 @@ ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf, | |||
169 | * Return: (POLLIN | POLLRDNORM) if data is available for reading | 169 | * Return: (POLLIN | POLLRDNORM) if data is available for reading |
170 | * or 0 for other cases | 170 | * or 0 for other cases |
171 | */ | 171 | */ |
172 | unsigned int iio_buffer_poll(struct file *filp, | 172 | __poll_t iio_buffer_poll(struct file *filp, |
173 | struct poll_table_struct *wait) | 173 | struct poll_table_struct *wait) |
174 | { | 174 | { |
175 | struct iio_dev *indio_dev = filp->private_data; | 175 | struct iio_dev *indio_dev = filp->private_data; |
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c index 90fac8ec63c9..0bcf073e46db 100644 --- a/drivers/iio/industrialio-event.c +++ b/drivers/iio/industrialio-event.c | |||
@@ -95,12 +95,12 @@ EXPORT_SYMBOL(iio_push_event); | |||
95 | * Return: (POLLIN | POLLRDNORM) if data is available for reading | 95 | * Return: (POLLIN | POLLRDNORM) if data is available for reading |
96 | * or a negative error code on failure | 96 | * or a negative error code on failure |
97 | */ | 97 | */ |
98 | static unsigned int iio_event_poll(struct file *filep, | 98 | static __poll_t iio_event_poll(struct file *filep, |
99 | struct poll_table_struct *wait) | 99 | struct poll_table_struct *wait) |
100 | { | 100 | { |
101 | struct iio_dev *indio_dev = filep->private_data; | 101 | struct iio_dev *indio_dev = filep->private_data; |
102 | struct iio_event_interface *ev_int = indio_dev->event_interface; | 102 | struct iio_event_interface *ev_int = indio_dev->event_interface; |
103 | unsigned int events = 0; | 103 | __poll_t events = 0; |
104 | 104 | ||
105 | if (!indio_dev->info) | 105 | if (!indio_dev->info) |
106 | return events; | 106 | return events; |
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c index f2a7f62c2834..f7adae0adc19 100644 --- a/drivers/infiniband/core/ucm.c +++ b/drivers/infiniband/core/ucm.c | |||
@@ -1130,11 +1130,11 @@ static ssize_t ib_ucm_write(struct file *filp, const char __user *buf, | |||
1130 | return result; | 1130 | return result; |
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | static unsigned int ib_ucm_poll(struct file *filp, | 1133 | static __poll_t ib_ucm_poll(struct file *filp, |
1134 | struct poll_table_struct *wait) | 1134 | struct poll_table_struct *wait) |
1135 | { | 1135 | { |
1136 | struct ib_ucm_file *file = filp->private_data; | 1136 | struct ib_ucm_file *file = filp->private_data; |
1137 | unsigned int mask = 0; | 1137 | __poll_t mask = 0; |
1138 | 1138 | ||
1139 | poll_wait(filp, &file->poll_wait, wait); | 1139 | poll_wait(filp, &file->poll_wait, wait); |
1140 | 1140 | ||
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index eb85b546e223..e4be89d1f3d8 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c | |||
@@ -1630,10 +1630,10 @@ static ssize_t ucma_write(struct file *filp, const char __user *buf, | |||
1630 | return ret; | 1630 | return ret; |
1631 | } | 1631 | } |
1632 | 1632 | ||
1633 | static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait) | 1633 | static __poll_t ucma_poll(struct file *filp, struct poll_table_struct *wait) |
1634 | { | 1634 | { |
1635 | struct ucma_file *file = filp->private_data; | 1635 | struct ucma_file *file = filp->private_data; |
1636 | unsigned int mask = 0; | 1636 | __poll_t mask = 0; |
1637 | 1637 | ||
1638 | poll_wait(filp, &file->poll_wait, wait); | 1638 | poll_wait(filp, &file->poll_wait, wait); |
1639 | 1639 | ||
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 4b64dd02e090..0c32d10f23ff 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -617,12 +617,12 @@ err: | |||
617 | return ret; | 617 | return ret; |
618 | } | 618 | } |
619 | 619 | ||
620 | static unsigned int ib_umad_poll(struct file *filp, struct poll_table_struct *wait) | 620 | static __poll_t ib_umad_poll(struct file *filp, struct poll_table_struct *wait) |
621 | { | 621 | { |
622 | struct ib_umad_file *file = filp->private_data; | 622 | struct ib_umad_file *file = filp->private_data; |
623 | 623 | ||
624 | /* we will always be able to post a MAD send */ | 624 | /* we will always be able to post a MAD send */ |
625 | unsigned int mask = POLLOUT | POLLWRNORM; | 625 | __poll_t mask = POLLOUT | POLLWRNORM; |
626 | 626 | ||
627 | poll_wait(filp, &file->recv_wait, wait); | 627 | poll_wait(filp, &file->recv_wait, wait); |
628 | 628 | ||
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index 381fd9c096ae..5f216ffb465a 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -339,11 +339,11 @@ static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf, | |||
339 | sizeof(struct ib_uverbs_comp_event_desc)); | 339 | sizeof(struct ib_uverbs_comp_event_desc)); |
340 | } | 340 | } |
341 | 341 | ||
342 | static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue, | 342 | static __poll_t ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue, |
343 | struct file *filp, | 343 | struct file *filp, |
344 | struct poll_table_struct *wait) | 344 | struct poll_table_struct *wait) |
345 | { | 345 | { |
346 | unsigned int pollflags = 0; | 346 | __poll_t pollflags = 0; |
347 | 347 | ||
348 | poll_wait(filp, &ev_queue->poll_wait, wait); | 348 | poll_wait(filp, &ev_queue->poll_wait, wait); |
349 | 349 | ||
@@ -355,13 +355,13 @@ static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue, | |||
355 | return pollflags; | 355 | return pollflags; |
356 | } | 356 | } |
357 | 357 | ||
358 | static unsigned int ib_uverbs_async_event_poll(struct file *filp, | 358 | static __poll_t ib_uverbs_async_event_poll(struct file *filp, |
359 | struct poll_table_struct *wait) | 359 | struct poll_table_struct *wait) |
360 | { | 360 | { |
361 | return ib_uverbs_event_poll(filp->private_data, filp, wait); | 361 | return ib_uverbs_event_poll(filp->private_data, filp, wait); |
362 | } | 362 | } |
363 | 363 | ||
364 | static unsigned int ib_uverbs_comp_event_poll(struct file *filp, | 364 | static __poll_t ib_uverbs_comp_event_poll(struct file *filp, |
365 | struct poll_table_struct *wait) | 365 | struct poll_table_struct *wait) |
366 | { | 366 | { |
367 | struct ib_uverbs_completion_event_file *comp_ev_file = | 367 | struct ib_uverbs_completion_event_file *comp_ev_file = |
diff --git a/drivers/infiniband/hw/hfi1/file_ops.c b/drivers/infiniband/hw/hfi1/file_ops.c index 7750a9c38b06..82086241aac3 100644 --- a/drivers/infiniband/hw/hfi1/file_ops.c +++ b/drivers/infiniband/hw/hfi1/file_ops.c | |||
@@ -74,7 +74,7 @@ | |||
74 | static int hfi1_file_open(struct inode *inode, struct file *fp); | 74 | static int hfi1_file_open(struct inode *inode, struct file *fp); |
75 | static int hfi1_file_close(struct inode *inode, struct file *fp); | 75 | static int hfi1_file_close(struct inode *inode, struct file *fp); |
76 | static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from); | 76 | static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from); |
77 | static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt); | 77 | static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt); |
78 | static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma); | 78 | static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma); |
79 | 79 | ||
80 | static u64 kvirt_to_phys(void *addr); | 80 | static u64 kvirt_to_phys(void *addr); |
@@ -102,8 +102,8 @@ static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, | |||
102 | struct hfi1_user_info *uinfo, | 102 | struct hfi1_user_info *uinfo, |
103 | struct hfi1_ctxtdata **cd); | 103 | struct hfi1_ctxtdata **cd); |
104 | static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); | 104 | static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); |
105 | static unsigned int poll_urgent(struct file *fp, struct poll_table_struct *pt); | 105 | static __poll_t poll_urgent(struct file *fp, struct poll_table_struct *pt); |
106 | static unsigned int poll_next(struct file *fp, struct poll_table_struct *pt); | 106 | static __poll_t poll_next(struct file *fp, struct poll_table_struct *pt); |
107 | static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, | 107 | static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, |
108 | unsigned long arg); | 108 | unsigned long arg); |
109 | static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); | 109 | static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); |
@@ -607,10 +607,10 @@ static int vma_fault(struct vm_fault *vmf) | |||
607 | return 0; | 607 | return 0; |
608 | } | 608 | } |
609 | 609 | ||
610 | static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt) | 610 | static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt) |
611 | { | 611 | { |
612 | struct hfi1_ctxtdata *uctxt; | 612 | struct hfi1_ctxtdata *uctxt; |
613 | unsigned pollflag; | 613 | __poll_t pollflag; |
614 | 614 | ||
615 | uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt; | 615 | uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt; |
616 | if (!uctxt) | 616 | if (!uctxt) |
@@ -1425,13 +1425,13 @@ static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg, | |||
1425 | return ret; | 1425 | return ret; |
1426 | } | 1426 | } |
1427 | 1427 | ||
1428 | static unsigned int poll_urgent(struct file *fp, | 1428 | static __poll_t poll_urgent(struct file *fp, |
1429 | struct poll_table_struct *pt) | 1429 | struct poll_table_struct *pt) |
1430 | { | 1430 | { |
1431 | struct hfi1_filedata *fd = fp->private_data; | 1431 | struct hfi1_filedata *fd = fp->private_data; |
1432 | struct hfi1_ctxtdata *uctxt = fd->uctxt; | 1432 | struct hfi1_ctxtdata *uctxt = fd->uctxt; |
1433 | struct hfi1_devdata *dd = uctxt->dd; | 1433 | struct hfi1_devdata *dd = uctxt->dd; |
1434 | unsigned pollflag; | 1434 | __poll_t pollflag; |
1435 | 1435 | ||
1436 | poll_wait(fp, &uctxt->wait, pt); | 1436 | poll_wait(fp, &uctxt->wait, pt); |
1437 | 1437 | ||
@@ -1448,13 +1448,13 @@ static unsigned int poll_urgent(struct file *fp, | |||
1448 | return pollflag; | 1448 | return pollflag; |
1449 | } | 1449 | } |
1450 | 1450 | ||
1451 | static unsigned int poll_next(struct file *fp, | 1451 | static __poll_t poll_next(struct file *fp, |
1452 | struct poll_table_struct *pt) | 1452 | struct poll_table_struct *pt) |
1453 | { | 1453 | { |
1454 | struct hfi1_filedata *fd = fp->private_data; | 1454 | struct hfi1_filedata *fd = fp->private_data; |
1455 | struct hfi1_ctxtdata *uctxt = fd->uctxt; | 1455 | struct hfi1_ctxtdata *uctxt = fd->uctxt; |
1456 | struct hfi1_devdata *dd = uctxt->dd; | 1456 | struct hfi1_devdata *dd = uctxt->dd; |
1457 | unsigned pollflag; | 1457 | __poll_t pollflag; |
1458 | 1458 | ||
1459 | poll_wait(fp, &uctxt->wait, pt); | 1459 | poll_wait(fp, &uctxt->wait, pt); |
1460 | 1460 | ||
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 2d6a191afec0..b67df63bd64b 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
@@ -58,7 +58,7 @@ static int qib_open(struct inode *, struct file *); | |||
58 | static int qib_close(struct inode *, struct file *); | 58 | static int qib_close(struct inode *, struct file *); |
59 | static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *); | 59 | static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *); |
60 | static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *); | 60 | static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *); |
61 | static unsigned int qib_poll(struct file *, struct poll_table_struct *); | 61 | static __poll_t qib_poll(struct file *, struct poll_table_struct *); |
62 | static int qib_mmapf(struct file *, struct vm_area_struct *); | 62 | static int qib_mmapf(struct file *, struct vm_area_struct *); |
63 | 63 | ||
64 | /* | 64 | /* |
@@ -1092,12 +1092,12 @@ bail: | |||
1092 | return ret; | 1092 | return ret; |
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd, | 1095 | static __poll_t qib_poll_urgent(struct qib_ctxtdata *rcd, |
1096 | struct file *fp, | 1096 | struct file *fp, |
1097 | struct poll_table_struct *pt) | 1097 | struct poll_table_struct *pt) |
1098 | { | 1098 | { |
1099 | struct qib_devdata *dd = rcd->dd; | 1099 | struct qib_devdata *dd = rcd->dd; |
1100 | unsigned pollflag; | 1100 | __poll_t pollflag; |
1101 | 1101 | ||
1102 | poll_wait(fp, &rcd->wait, pt); | 1102 | poll_wait(fp, &rcd->wait, pt); |
1103 | 1103 | ||
@@ -1114,12 +1114,12 @@ static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd, | |||
1114 | return pollflag; | 1114 | return pollflag; |
1115 | } | 1115 | } |
1116 | 1116 | ||
1117 | static unsigned int qib_poll_next(struct qib_ctxtdata *rcd, | 1117 | static __poll_t qib_poll_next(struct qib_ctxtdata *rcd, |
1118 | struct file *fp, | 1118 | struct file *fp, |
1119 | struct poll_table_struct *pt) | 1119 | struct poll_table_struct *pt) |
1120 | { | 1120 | { |
1121 | struct qib_devdata *dd = rcd->dd; | 1121 | struct qib_devdata *dd = rcd->dd; |
1122 | unsigned pollflag; | 1122 | __poll_t pollflag; |
1123 | 1123 | ||
1124 | poll_wait(fp, &rcd->wait, pt); | 1124 | poll_wait(fp, &rcd->wait, pt); |
1125 | 1125 | ||
@@ -1135,10 +1135,10 @@ static unsigned int qib_poll_next(struct qib_ctxtdata *rcd, | |||
1135 | return pollflag; | 1135 | return pollflag; |
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | static unsigned int qib_poll(struct file *fp, struct poll_table_struct *pt) | 1138 | static __poll_t qib_poll(struct file *fp, struct poll_table_struct *pt) |
1139 | { | 1139 | { |
1140 | struct qib_ctxtdata *rcd; | 1140 | struct qib_ctxtdata *rcd; |
1141 | unsigned pollflag; | 1141 | __poll_t pollflag; |
1142 | 1142 | ||
1143 | rcd = ctxt_fp(fp); | 1143 | rcd = ctxt_fp(fp); |
1144 | if (!rcd) | 1144 | if (!rcd) |
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 925571475005..0193dd4f0452 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
@@ -635,11 +635,11 @@ static ssize_t evdev_read(struct file *file, char __user *buffer, | |||
635 | } | 635 | } |
636 | 636 | ||
637 | /* No kernel lock - fine */ | 637 | /* No kernel lock - fine */ |
638 | static unsigned int evdev_poll(struct file *file, poll_table *wait) | 638 | static __poll_t evdev_poll(struct file *file, poll_table *wait) |
639 | { | 639 | { |
640 | struct evdev_client *client = file->private_data; | 640 | struct evdev_client *client = file->private_data; |
641 | struct evdev *evdev = client->evdev; | 641 | struct evdev *evdev = client->evdev; |
642 | unsigned int mask; | 642 | __poll_t mask; |
643 | 643 | ||
644 | poll_wait(file, &evdev->wait, wait); | 644 | poll_wait(file, &evdev->wait, wait); |
645 | 645 | ||
diff --git a/drivers/input/input.c b/drivers/input/input.c index e30642db50d5..0d0b2ab1bb6b 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -1048,7 +1048,7 @@ static inline void input_wakeup_procfs_readers(void) | |||
1048 | wake_up(&input_devices_poll_wait); | 1048 | wake_up(&input_devices_poll_wait); |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | static unsigned int input_proc_devices_poll(struct file *file, poll_table *wait) | 1051 | static __poll_t input_proc_devices_poll(struct file *file, poll_table *wait) |
1052 | { | 1052 | { |
1053 | poll_wait(file, &input_devices_poll_wait, wait); | 1053 | poll_wait(file, &input_devices_poll_wait, wait); |
1054 | if (file->f_version != input_devices_state) { | 1054 | if (file->f_version != input_devices_state) { |
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index 7b29a8944039..fe3255572886 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
@@ -436,7 +436,7 @@ static ssize_t joydev_read(struct file *file, char __user *buf, | |||
436 | } | 436 | } |
437 | 437 | ||
438 | /* No kernel lock - fine */ | 438 | /* No kernel lock - fine */ |
439 | static unsigned int joydev_poll(struct file *file, poll_table *wait) | 439 | static __poll_t joydev_poll(struct file *file, poll_table *wait) |
440 | { | 440 | { |
441 | struct joydev_client *client = file->private_data; | 441 | struct joydev_client *client = file->private_data; |
442 | struct joydev *joydev = client->joydev; | 442 | struct joydev *joydev = client->joydev; |
diff --git a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c index 1c8c56efc995..9c3f7ec3bd3d 100644 --- a/drivers/input/misc/hp_sdc_rtc.c +++ b/drivers/input/misc/hp_sdc_rtc.c | |||
@@ -408,7 +408,7 @@ static ssize_t hp_sdc_rtc_read(struct file *file, char __user *buf, | |||
408 | return retval; | 408 | return retval; |
409 | } | 409 | } |
410 | 410 | ||
411 | static unsigned int hp_sdc_rtc_poll(struct file *file, poll_table *wait) | 411 | static __poll_t hp_sdc_rtc_poll(struct file *file, poll_table *wait) |
412 | { | 412 | { |
413 | unsigned long l; | 413 | unsigned long l; |
414 | 414 | ||
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 39ddd9a73feb..91df0df15e68 100644 --- a/drivers/input/misc/uinput.c +++ b/drivers/input/misc/uinput.c | |||
@@ -694,7 +694,7 @@ static ssize_t uinput_read(struct file *file, char __user *buffer, | |||
694 | return retval; | 694 | return retval; |
695 | } | 695 | } |
696 | 696 | ||
697 | static unsigned int uinput_poll(struct file *file, poll_table *wait) | 697 | static __poll_t uinput_poll(struct file *file, poll_table *wait) |
698 | { | 698 | { |
699 | struct uinput_device *udev = file->private_data; | 699 | struct uinput_device *udev = file->private_data; |
700 | 700 | ||
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 2d7f691ec71c..731d84ae5101 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -757,11 +757,11 @@ static ssize_t mousedev_read(struct file *file, char __user *buffer, | |||
757 | } | 757 | } |
758 | 758 | ||
759 | /* No kernel lock - fine */ | 759 | /* No kernel lock - fine */ |
760 | static unsigned int mousedev_poll(struct file *file, poll_table *wait) | 760 | static __poll_t mousedev_poll(struct file *file, poll_table *wait) |
761 | { | 761 | { |
762 | struct mousedev_client *client = file->private_data; | 762 | struct mousedev_client *client = file->private_data; |
763 | struct mousedev *mousedev = client->mousedev; | 763 | struct mousedev *mousedev = client->mousedev; |
764 | unsigned int mask; | 764 | __poll_t mask; |
765 | 765 | ||
766 | poll_wait(file, &mousedev->wait, wait); | 766 | poll_wait(file, &mousedev->wait, wait); |
767 | 767 | ||
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index 516f9fe77a17..fccf55a380b2 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c | |||
@@ -239,11 +239,11 @@ out: | |||
239 | return retval; | 239 | return retval; |
240 | } | 240 | } |
241 | 241 | ||
242 | static unsigned int serio_raw_poll(struct file *file, poll_table *wait) | 242 | static __poll_t serio_raw_poll(struct file *file, poll_table *wait) |
243 | { | 243 | { |
244 | struct serio_raw_client *client = file->private_data; | 244 | struct serio_raw_client *client = file->private_data; |
245 | struct serio_raw *serio_raw = client->serio_raw; | 245 | struct serio_raw *serio_raw = client->serio_raw; |
246 | unsigned int mask; | 246 | __poll_t mask; |
247 | 247 | ||
248 | poll_wait(file, &serio_raw->wait, wait); | 248 | poll_wait(file, &serio_raw->wait, wait); |
249 | 249 | ||
diff --git a/drivers/input/serio/userio.c b/drivers/input/serio/userio.c index df1fd41860ac..a63de06b08bc 100644 --- a/drivers/input/serio/userio.c +++ b/drivers/input/serio/userio.c | |||
@@ -248,7 +248,7 @@ out: | |||
248 | return error ?: count; | 248 | return error ?: count; |
249 | } | 249 | } |
250 | 250 | ||
251 | static unsigned int userio_char_poll(struct file *file, poll_table *wait) | 251 | static __poll_t userio_char_poll(struct file *file, poll_table *wait) |
252 | { | 252 | { |
253 | struct userio_device *userio = file->private_data; | 253 | struct userio_device *userio = file->private_data; |
254 | 254 | ||
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index dde8f46bc254..e268811dc544 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -724,11 +724,11 @@ capi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos | |||
724 | return count; | 724 | return count; |
725 | } | 725 | } |
726 | 726 | ||
727 | static unsigned int | 727 | static __poll_t |
728 | capi_poll(struct file *file, poll_table *wait) | 728 | capi_poll(struct file *file, poll_table *wait) |
729 | { | 729 | { |
730 | struct capidev *cdev = file->private_data; | 730 | struct capidev *cdev = file->private_data; |
731 | unsigned int mask = 0; | 731 | __poll_t mask = 0; |
732 | 732 | ||
733 | if (!cdev->ap.applid) | 733 | if (!cdev->ap.applid) |
734 | return POLLERR; | 734 | return POLLERR; |
diff --git a/drivers/isdn/divert/divert_procfs.c b/drivers/isdn/divert/divert_procfs.c index 1c5dc345e7c5..34b7704042a4 100644 --- a/drivers/isdn/divert/divert_procfs.c +++ b/drivers/isdn/divert/divert_procfs.c | |||
@@ -119,10 +119,10 @@ isdn_divert_write(struct file *file, const char __user *buf, size_t count, loff_ | |||
119 | /***************************************/ | 119 | /***************************************/ |
120 | /* select routines for various kernels */ | 120 | /* select routines for various kernels */ |
121 | /***************************************/ | 121 | /***************************************/ |
122 | static unsigned int | 122 | static __poll_t |
123 | isdn_divert_poll(struct file *file, poll_table *wait) | 123 | isdn_divert_poll(struct file *file, poll_table *wait) |
124 | { | 124 | { |
125 | unsigned int mask = 0; | 125 | __poll_t mask = 0; |
126 | 126 | ||
127 | poll_wait(file, &(rd_queue), wait); | 127 | poll_wait(file, &(rd_queue), wait); |
128 | /* mask = POLLOUT | POLLWRNORM; */ | 128 | /* mask = POLLOUT | POLLWRNORM; */ |
diff --git a/drivers/isdn/hardware/eicon/divamnt.c b/drivers/isdn/hardware/eicon/divamnt.c index 72e58bf07577..70f16102a001 100644 --- a/drivers/isdn/hardware/eicon/divamnt.c +++ b/drivers/isdn/hardware/eicon/divamnt.c | |||
@@ -98,9 +98,9 @@ void diva_os_get_time(dword *sec, dword *usec) | |||
98 | /* | 98 | /* |
99 | * device node operations | 99 | * device node operations |
100 | */ | 100 | */ |
101 | static unsigned int maint_poll(struct file *file, poll_table *wait) | 101 | static __poll_t maint_poll(struct file *file, poll_table *wait) |
102 | { | 102 | { |
103 | unsigned int mask = 0; | 103 | __poll_t mask = 0; |
104 | 104 | ||
105 | poll_wait(file, &msgwaitq, wait); | 105 | poll_wait(file, &msgwaitq, wait); |
106 | mask = POLLOUT | POLLWRNORM; | 106 | mask = POLLOUT | POLLWRNORM; |
diff --git a/drivers/isdn/hardware/eicon/divasi.c b/drivers/isdn/hardware/eicon/divasi.c index 0033d74a7291..da5cc5ab7e2d 100644 --- a/drivers/isdn/hardware/eicon/divasi.c +++ b/drivers/isdn/hardware/eicon/divasi.c | |||
@@ -74,7 +74,7 @@ static ssize_t um_idi_read(struct file *file, char __user *buf, size_t count, | |||
74 | loff_t *offset); | 74 | loff_t *offset); |
75 | static ssize_t um_idi_write(struct file *file, const char __user *buf, | 75 | static ssize_t um_idi_write(struct file *file, const char __user *buf, |
76 | size_t count, loff_t *offset); | 76 | size_t count, loff_t *offset); |
77 | static unsigned int um_idi_poll(struct file *file, poll_table *wait); | 77 | static __poll_t um_idi_poll(struct file *file, poll_table *wait); |
78 | static int um_idi_open(struct inode *inode, struct file *file); | 78 | static int um_idi_open(struct inode *inode, struct file *file); |
79 | static int um_idi_release(struct inode *inode, struct file *file); | 79 | static int um_idi_release(struct inode *inode, struct file *file); |
80 | static int remove_entity(void *entity); | 80 | static int remove_entity(void *entity); |
@@ -365,7 +365,7 @@ um_idi_write(struct file *file, const char __user *buf, size_t count, | |||
365 | return (ret); | 365 | return (ret); |
366 | } | 366 | } |
367 | 367 | ||
368 | static unsigned int um_idi_poll(struct file *file, poll_table *wait) | 368 | static __poll_t um_idi_poll(struct file *file, poll_table *wait) |
369 | { | 369 | { |
370 | diva_um_idi_os_context_t *p_os; | 370 | diva_um_idi_os_context_t *p_os; |
371 | 371 | ||
diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c index b2023e08dcd2..fbc788e6f0db 100644 --- a/drivers/isdn/hardware/eicon/divasmain.c +++ b/drivers/isdn/hardware/eicon/divasmain.c | |||
@@ -650,7 +650,7 @@ static ssize_t divas_read(struct file *file, char __user *buf, | |||
650 | return (ret); | 650 | return (ret); |
651 | } | 651 | } |
652 | 652 | ||
653 | static unsigned int divas_poll(struct file *file, poll_table *wait) | 653 | static __poll_t divas_poll(struct file *file, poll_table *wait) |
654 | { | 654 | { |
655 | if (!file->private_data) { | 655 | if (!file->private_data) { |
656 | return (POLLERR); | 656 | return (POLLERR); |
diff --git a/drivers/isdn/hardware/eicon/divasproc.c b/drivers/isdn/hardware/eicon/divasproc.c index b57efd6ad916..3478f6f099eb 100644 --- a/drivers/isdn/hardware/eicon/divasproc.c +++ b/drivers/isdn/hardware/eicon/divasproc.c | |||
@@ -99,7 +99,7 @@ divas_write(struct file *file, const char __user *buf, size_t count, loff_t *off | |||
99 | return (-ENODEV); | 99 | return (-ENODEV); |
100 | } | 100 | } |
101 | 101 | ||
102 | static unsigned int divas_poll(struct file *file, poll_table *wait) | 102 | static __poll_t divas_poll(struct file *file, poll_table *wait) |
103 | { | 103 | { |
104 | return (POLLERR); | 104 | return (POLLERR); |
105 | } | 105 | } |
diff --git a/drivers/isdn/hysdn/hysdn_proclog.c b/drivers/isdn/hysdn/hysdn_proclog.c index aaca0b3d662e..6abea6915f49 100644 --- a/drivers/isdn/hysdn/hysdn_proclog.c +++ b/drivers/isdn/hysdn/hysdn_proclog.c | |||
@@ -281,10 +281,10 @@ hysdn_log_close(struct inode *ino, struct file *filep) | |||
281 | /*************************************************/ | 281 | /*************************************************/ |
282 | /* select/poll routine to be able using select() */ | 282 | /* select/poll routine to be able using select() */ |
283 | /*************************************************/ | 283 | /*************************************************/ |
284 | static unsigned int | 284 | static __poll_t |
285 | hysdn_log_poll(struct file *file, poll_table *wait) | 285 | hysdn_log_poll(struct file *file, poll_table *wait) |
286 | { | 286 | { |
287 | unsigned int mask = 0; | 287 | __poll_t mask = 0; |
288 | hysdn_card *card = PDE_DATA(file_inode(file)); | 288 | hysdn_card *card = PDE_DATA(file_inode(file)); |
289 | struct procdata *pd = card->proclog; | 289 | struct procdata *pd = card->proclog; |
290 | 290 | ||
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 8b03d618185e..0521c32949d4 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c | |||
@@ -1227,10 +1227,10 @@ out: | |||
1227 | return retval; | 1227 | return retval; |
1228 | } | 1228 | } |
1229 | 1229 | ||
1230 | static unsigned int | 1230 | static __poll_t |
1231 | isdn_poll(struct file *file, poll_table *wait) | 1231 | isdn_poll(struct file *file, poll_table *wait) |
1232 | { | 1232 | { |
1233 | unsigned int mask = 0; | 1233 | __poll_t mask = 0; |
1234 | unsigned int minor = iminor(file_inode(file)); | 1234 | unsigned int minor = iminor(file_inode(file)); |
1235 | int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); | 1235 | int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); |
1236 | 1236 | ||
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c index e07aefb9151d..57884319b4b1 100644 --- a/drivers/isdn/i4l/isdn_ppp.c +++ b/drivers/isdn/i4l/isdn_ppp.c | |||
@@ -685,10 +685,10 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg) | |||
685 | return 0; | 685 | return 0; |
686 | } | 686 | } |
687 | 687 | ||
688 | unsigned int | 688 | __poll_t |
689 | isdn_ppp_poll(struct file *file, poll_table *wait) | 689 | isdn_ppp_poll(struct file *file, poll_table *wait) |
690 | { | 690 | { |
691 | u_int mask; | 691 | __poll_t mask; |
692 | struct ippp_buf_queue *bf, *bl; | 692 | struct ippp_buf_queue *bf, *bl; |
693 | u_long flags; | 693 | u_long flags; |
694 | struct ippp_struct *is; | 694 | struct ippp_struct *is; |
diff --git a/drivers/isdn/i4l/isdn_ppp.h b/drivers/isdn/i4l/isdn_ppp.h index 4e9b8935a4eb..34b8a2ce84f3 100644 --- a/drivers/isdn/i4l/isdn_ppp.h +++ b/drivers/isdn/i4l/isdn_ppp.h | |||
@@ -23,7 +23,7 @@ extern int isdn_ppp_autodial_filter(struct sk_buff *, isdn_net_local *); | |||
23 | extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *); | 23 | extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *); |
24 | extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *); | 24 | extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *); |
25 | extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int); | 25 | extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int); |
26 | extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *); | 26 | extern __poll_t isdn_ppp_poll(struct file *, struct poll_table_struct *); |
27 | extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long); | 27 | extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long); |
28 | extern void isdn_ppp_release(int, struct file *); | 28 | extern void isdn_ppp_release(int, struct file *); |
29 | extern int isdn_ppp_dial_slave(char *); | 29 | extern int isdn_ppp_dial_slave(char *); |
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index c50a34340f67..f4272d4e0a26 100644 --- a/drivers/isdn/mISDN/timerdev.c +++ b/drivers/isdn/mISDN/timerdev.c | |||
@@ -141,11 +141,11 @@ mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) | |||
141 | return ret; | 141 | return ret; |
142 | } | 142 | } |
143 | 143 | ||
144 | static unsigned int | 144 | static __poll_t |
145 | mISDN_poll(struct file *filep, poll_table *wait) | 145 | mISDN_poll(struct file *filep, poll_table *wait) |
146 | { | 146 | { |
147 | struct mISDNtimerdev *dev = filep->private_data; | 147 | struct mISDNtimerdev *dev = filep->private_data; |
148 | unsigned int mask = POLLERR; | 148 | __poll_t mask = POLLERR; |
149 | 149 | ||
150 | if (*debug & DEBUG_TIMER) | 150 | if (*debug & DEBUG_TIMER) |
151 | printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait); | 151 | printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait); |
diff --git a/drivers/leds/uleds.c b/drivers/leds/uleds.c index 5e9e8a1fdefb..5beacab05ed7 100644 --- a/drivers/leds/uleds.c +++ b/drivers/leds/uleds.c | |||
@@ -176,7 +176,7 @@ static ssize_t uleds_read(struct file *file, char __user *buffer, size_t count, | |||
176 | return retval; | 176 | return retval; |
177 | } | 177 | } |
178 | 178 | ||
179 | static unsigned int uleds_poll(struct file *file, poll_table *wait) | 179 | static __poll_t uleds_poll(struct file *file, poll_table *wait) |
180 | { | 180 | { |
181 | struct uleds_device *udev = file->private_data; | 181 | struct uleds_device *udev = file->private_data; |
182 | 182 | ||
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index 899ec1f4c833..346e6f5f77be 100644 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c | |||
@@ -1245,10 +1245,10 @@ static ssize_t smu_read(struct file *file, char __user *buf, | |||
1245 | return -EBADFD; | 1245 | return -EBADFD; |
1246 | } | 1246 | } |
1247 | 1247 | ||
1248 | static unsigned int smu_fpoll(struct file *file, poll_table *wait) | 1248 | static __poll_t smu_fpoll(struct file *file, poll_table *wait) |
1249 | { | 1249 | { |
1250 | struct smu_private *pp = file->private_data; | 1250 | struct smu_private *pp = file->private_data; |
1251 | unsigned int mask = 0; | 1251 | __poll_t mask = 0; |
1252 | unsigned long flags; | 1252 | unsigned long flags; |
1253 | 1253 | ||
1254 | if (pp == 0) | 1254 | if (pp == 0) |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index c4c2b3b85ebc..e8b29fc532e1 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -2157,11 +2157,11 @@ pmu_write(struct file *file, const char __user *buf, | |||
2157 | return 0; | 2157 | return 0; |
2158 | } | 2158 | } |
2159 | 2159 | ||
2160 | static unsigned int | 2160 | static __poll_t |
2161 | pmu_fpoll(struct file *filp, poll_table *wait) | 2161 | pmu_fpoll(struct file *filp, poll_table *wait) |
2162 | { | 2162 | { |
2163 | struct pmu_private *pp = filp->private_data; | 2163 | struct pmu_private *pp = filp->private_data; |
2164 | unsigned int mask = 0; | 2164 | __poll_t mask = 0; |
2165 | unsigned long flags; | 2165 | unsigned long flags; |
2166 | 2166 | ||
2167 | if (pp == 0) | 2167 | if (pp == 0) |
diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c index 93f3d4d61fa7..f84730d63b1f 100644 --- a/drivers/mailbox/mailbox-test.c +++ b/drivers/mailbox/mailbox-test.c | |||
@@ -235,7 +235,7 @@ kfree_err: | |||
235 | return ret; | 235 | return ret; |
236 | } | 236 | } |
237 | 237 | ||
238 | static unsigned int | 238 | static __poll_t |
239 | mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait) | 239 | mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait) |
240 | { | 240 | { |
241 | struct mbox_test_device *tdev = filp->private_data; | 241 | struct mbox_test_device *tdev = filp->private_data; |
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index e52676fa9832..3f6791afd3e4 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -1929,10 +1929,10 @@ static int dm_release(struct inode *inode, struct file *filp) | |||
1929 | return 0; | 1929 | return 0; |
1930 | } | 1930 | } |
1931 | 1931 | ||
1932 | static unsigned dm_poll(struct file *filp, poll_table *wait) | 1932 | static __poll_t dm_poll(struct file *filp, poll_table *wait) |
1933 | { | 1933 | { |
1934 | struct dm_file *priv = filp->private_data; | 1934 | struct dm_file *priv = filp->private_data; |
1935 | unsigned mask = 0; | 1935 | __poll_t mask = 0; |
1936 | 1936 | ||
1937 | poll_wait(filp, &dm_global_eventq, wait); | 1937 | poll_wait(filp, &dm_global_eventq, wait); |
1938 | 1938 | ||
diff --git a/drivers/md/md.c b/drivers/md/md.c index 41c050b59ec4..e638d7199bd4 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -7869,10 +7869,10 @@ static int md_seq_open(struct inode *inode, struct file *file) | |||
7869 | } | 7869 | } |
7870 | 7870 | ||
7871 | static int md_unloading; | 7871 | static int md_unloading; |
7872 | static unsigned int mdstat_poll(struct file *filp, poll_table *wait) | 7872 | static __poll_t mdstat_poll(struct file *filp, poll_table *wait) |
7873 | { | 7873 | { |
7874 | struct seq_file *seq = filp->private_data; | 7874 | struct seq_file *seq = filp->private_data; |
7875 | int mask; | 7875 | __poll_t mask; |
7876 | 7876 | ||
7877 | if (md_unloading) | 7877 | if (md_unloading) |
7878 | return POLLIN|POLLRDNORM|POLLERR|POLLPRI; | 7878 | return POLLIN|POLLRDNORM|POLLERR|POLLPRI; |
diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index 7c11bad5cded..753b1a698fc4 100644 --- a/drivers/misc/cxl/api.c +++ b/drivers/misc/cxl/api.c | |||
@@ -427,7 +427,7 @@ int cxl_fd_mmap(struct file *file, struct vm_area_struct *vm) | |||
427 | return afu_mmap(file, vm); | 427 | return afu_mmap(file, vm); |
428 | } | 428 | } |
429 | EXPORT_SYMBOL_GPL(cxl_fd_mmap); | 429 | EXPORT_SYMBOL_GPL(cxl_fd_mmap); |
430 | unsigned int cxl_fd_poll(struct file *file, struct poll_table_struct *poll) | 430 | __poll_t cxl_fd_poll(struct file *file, struct poll_table_struct *poll) |
431 | { | 431 | { |
432 | return afu_poll(file, poll); | 432 | return afu_poll(file, poll); |
433 | } | 433 | } |
diff --git a/drivers/misc/cxl/cxl.h b/drivers/misc/cxl/cxl.h index e46a4062904a..a798c2ccd67d 100644 --- a/drivers/misc/cxl/cxl.h +++ b/drivers/misc/cxl/cxl.h | |||
@@ -1081,7 +1081,7 @@ int afu_open(struct inode *inode, struct file *file); | |||
1081 | int afu_release(struct inode *inode, struct file *file); | 1081 | int afu_release(struct inode *inode, struct file *file); |
1082 | long afu_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 1082 | long afu_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
1083 | int afu_mmap(struct file *file, struct vm_area_struct *vm); | 1083 | int afu_mmap(struct file *file, struct vm_area_struct *vm); |
1084 | unsigned int afu_poll(struct file *file, struct poll_table_struct *poll); | 1084 | __poll_t afu_poll(struct file *file, struct poll_table_struct *poll); |
1085 | ssize_t afu_read(struct file *file, char __user *buf, size_t count, loff_t *off); | 1085 | ssize_t afu_read(struct file *file, char __user *buf, size_t count, loff_t *off); |
1086 | extern const struct file_operations afu_fops; | 1086 | extern const struct file_operations afu_fops; |
1087 | 1087 | ||
diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cxl/file.c index 76c0b0ca9388..90341ccda9bd 100644 --- a/drivers/misc/cxl/file.c +++ b/drivers/misc/cxl/file.c | |||
@@ -354,10 +354,10 @@ static inline bool ctx_event_pending(struct cxl_context *ctx) | |||
354 | return false; | 354 | return false; |
355 | } | 355 | } |
356 | 356 | ||
357 | unsigned int afu_poll(struct file *file, struct poll_table_struct *poll) | 357 | __poll_t afu_poll(struct file *file, struct poll_table_struct *poll) |
358 | { | 358 | { |
359 | struct cxl_context *ctx = file->private_data; | 359 | struct cxl_context *ctx = file->private_data; |
360 | int mask = 0; | 360 | __poll_t mask = 0; |
361 | unsigned long flags; | 361 | unsigned long flags; |
362 | 362 | ||
363 | 363 | ||
diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c index 097e3092c158..95ce3e891b1b 100644 --- a/drivers/misc/hpilo.c +++ b/drivers/misc/hpilo.c | |||
@@ -514,7 +514,7 @@ static ssize_t ilo_write(struct file *fp, const char __user *buf, | |||
514 | return err ? -EFAULT : len; | 514 | return err ? -EFAULT : len; |
515 | } | 515 | } |
516 | 516 | ||
517 | static unsigned int ilo_poll(struct file *fp, poll_table *wait) | 517 | static __poll_t ilo_poll(struct file *fp, poll_table *wait) |
518 | { | 518 | { |
519 | struct ccb_data *data = fp->private_data; | 519 | struct ccb_data *data = fp->private_data; |
520 | struct ccb *driver_ccb = &data->driver_ccb; | 520 | struct ccb *driver_ccb = &data->driver_ccb; |
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index 8d53609861d8..e49888eab87d 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c | |||
@@ -651,7 +651,7 @@ out: | |||
651 | return retval; | 651 | return retval; |
652 | } | 652 | } |
653 | 653 | ||
654 | static unsigned int lis3lv02d_misc_poll(struct file *file, poll_table *wait) | 654 | static __poll_t lis3lv02d_misc_poll(struct file *file, poll_table *wait) |
655 | { | 655 | { |
656 | struct lis3lv02d *lis3 = container_of(file->private_data, | 656 | struct lis3lv02d *lis3 = container_of(file->private_data, |
657 | struct lis3lv02d, miscdev); | 657 | struct lis3lv02d, miscdev); |
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 4f704641c574..505b710291e6 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -542,12 +542,12 @@ static long mei_compat_ioctl(struct file *file, | |||
542 | * | 542 | * |
543 | * Return: poll mask | 543 | * Return: poll mask |
544 | */ | 544 | */ |
545 | static unsigned int mei_poll(struct file *file, poll_table *wait) | 545 | static __poll_t mei_poll(struct file *file, poll_table *wait) |
546 | { | 546 | { |
547 | __poll_t req_events = poll_requested_events(wait); | 547 | __poll_t req_events = poll_requested_events(wait); |
548 | struct mei_cl *cl = file->private_data; | 548 | struct mei_cl *cl = file->private_data; |
549 | struct mei_device *dev; | 549 | struct mei_device *dev; |
550 | unsigned int mask = 0; | 550 | __poll_t mask = 0; |
551 | bool notify_en; | 551 | bool notify_en; |
552 | 552 | ||
553 | if (WARN_ON(!cl || !cl->dev)) | 553 | if (WARN_ON(!cl || !cl->dev)) |
diff --git a/drivers/misc/mic/scif/scif_api.c b/drivers/misc/mic/scif/scif_api.c index ddc9e4b08b5c..8a3e48ec37dd 100644 --- a/drivers/misc/mic/scif/scif_api.c +++ b/drivers/misc/mic/scif/scif_api.c | |||
@@ -1311,10 +1311,10 @@ static inline void _scif_poll_wait(struct file *f, wait_queue_head_t *wq, | |||
1311 | spin_lock(&ep->lock); | 1311 | spin_lock(&ep->lock); |
1312 | } | 1312 | } |
1313 | 1313 | ||
1314 | unsigned int | 1314 | __poll_t |
1315 | __scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep) | 1315 | __scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep) |
1316 | { | 1316 | { |
1317 | unsigned int mask = 0; | 1317 | __poll_t mask = 0; |
1318 | 1318 | ||
1319 | dev_dbg(scif_info.mdev.this_device, | 1319 | dev_dbg(scif_info.mdev.this_device, |
1320 | "SCIFAPI pollfd: ep %p %s\n", ep, scif_ep_states[ep->state]); | 1320 | "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) | |||
1389 | { | 1389 | { |
1390 | struct poll_wqueues table; | 1390 | struct poll_wqueues table; |
1391 | poll_table *pt; | 1391 | poll_table *pt; |
1392 | int i, mask, count = 0, timed_out = timeout_msecs == 0; | 1392 | int i, count = 0, timed_out = timeout_msecs == 0; |
1393 | __poll_t mask; | ||
1393 | u64 timeout = timeout_msecs < 0 ? MAX_SCHEDULE_TIMEOUT | 1394 | u64 timeout = timeout_msecs < 0 ? MAX_SCHEDULE_TIMEOUT |
1394 | : msecs_to_jiffies(timeout_msecs); | 1395 | : msecs_to_jiffies(timeout_msecs); |
1395 | 1396 | ||
diff --git a/drivers/misc/mic/scif/scif_epd.h b/drivers/misc/mic/scif/scif_epd.h index 1771d7a9b8d0..f39b663da287 100644 --- a/drivers/misc/mic/scif/scif_epd.h +++ b/drivers/misc/mic/scif/scif_epd.h | |||
@@ -203,7 +203,7 @@ void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg); | |||
203 | int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block); | 203 | int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block); |
204 | int __scif_flush(scif_epd_t epd); | 204 | int __scif_flush(scif_epd_t epd); |
205 | int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd); | 205 | int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd); |
206 | unsigned int __scif_pollfd(struct file *f, poll_table *wait, | 206 | __poll_t __scif_pollfd(struct file *f, poll_table *wait, |
207 | struct scif_endpt *ep); | 207 | struct scif_endpt *ep); |
208 | int __scif_pin_pages(void *addr, size_t len, int *out_prot, | 208 | int __scif_pin_pages(void *addr, size_t len, int *out_prot, |
209 | int map_flags, scif_pinned_pages_t *pages); | 209 | int map_flags, scif_pinned_pages_t *pages); |
diff --git a/drivers/misc/mic/scif/scif_fd.c b/drivers/misc/mic/scif/scif_fd.c index f7e826142a72..5c2a57ae4f85 100644 --- a/drivers/misc/mic/scif/scif_fd.c +++ b/drivers/misc/mic/scif/scif_fd.c | |||
@@ -41,7 +41,7 @@ static int scif_fdmmap(struct file *f, struct vm_area_struct *vma) | |||
41 | return scif_mmap(vma, priv); | 41 | return scif_mmap(vma, priv); |
42 | } | 42 | } |
43 | 43 | ||
44 | static unsigned int scif_fdpoll(struct file *f, poll_table *wait) | 44 | static __poll_t scif_fdpoll(struct file *f, poll_table *wait) |
45 | { | 45 | { |
46 | struct scif_endpt *priv = f->private_data; | 46 | struct scif_endpt *priv = f->private_data; |
47 | 47 | ||
diff --git a/drivers/misc/mic/vop/vop_vringh.c b/drivers/misc/mic/vop/vop_vringh.c index fed992e2c258..4120ed8f0cae 100644 --- a/drivers/misc/mic/vop/vop_vringh.c +++ b/drivers/misc/mic/vop/vop_vringh.c | |||
@@ -1023,10 +1023,10 @@ __unlock_ret: | |||
1023 | * in the card->host (TX) path, when userspace is unblocked by poll it | 1023 | * in the card->host (TX) path, when userspace is unblocked by poll it |
1024 | * must drain all available descriptors or it can stall. | 1024 | * must drain all available descriptors or it can stall. |
1025 | */ | 1025 | */ |
1026 | static unsigned int vop_poll(struct file *f, poll_table *wait) | 1026 | static __poll_t vop_poll(struct file *f, poll_table *wait) |
1027 | { | 1027 | { |
1028 | struct vop_vdev *vdev = f->private_data; | 1028 | struct vop_vdev *vdev = f->private_data; |
1029 | int mask = 0; | 1029 | __poll_t mask = 0; |
1030 | 1030 | ||
1031 | mutex_lock(&vdev->vdev_mutex); | 1031 | mutex_lock(&vdev->vdev_mutex); |
1032 | if (vop_vdev_inited(vdev)) { | 1032 | if (vop_vdev_inited(vdev)) { |
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index 30754927fd80..8fa68cf308e0 100644 --- a/drivers/misc/phantom.c +++ b/drivers/misc/phantom.c | |||
@@ -256,10 +256,10 @@ static int phantom_release(struct inode *inode, struct file *file) | |||
256 | return 0; | 256 | return 0; |
257 | } | 257 | } |
258 | 258 | ||
259 | static unsigned int phantom_poll(struct file *file, poll_table *wait) | 259 | static __poll_t phantom_poll(struct file *file, poll_table *wait) |
260 | { | 260 | { |
261 | struct phantom_device *dev = file->private_data; | 261 | struct phantom_device *dev = file->private_data; |
262 | unsigned int mask = 0; | 262 | __poll_t mask = 0; |
263 | 263 | ||
264 | pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter)); | 264 | pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter)); |
265 | poll_wait(file, &dev->wait, wait); | 265 | poll_wait(file, &dev->wait, wait); |
diff --git a/drivers/misc/vmw_vmci/vmci_host.c b/drivers/misc/vmw_vmci/vmci_host.c index 8a16a26e9658..6640e7651533 100644 --- a/drivers/misc/vmw_vmci/vmci_host.c +++ b/drivers/misc/vmw_vmci/vmci_host.c | |||
@@ -166,11 +166,11 @@ static int vmci_host_close(struct inode *inode, struct file *filp) | |||
166 | * This is used to wake up the VMX when a VMCI call arrives, or | 166 | * This is used to wake up the VMX when a VMCI call arrives, or |
167 | * to wake up select() or poll() at the next clock tick. | 167 | * to wake up select() or poll() at the next clock tick. |
168 | */ | 168 | */ |
169 | static unsigned int vmci_host_poll(struct file *filp, poll_table *wait) | 169 | static __poll_t vmci_host_poll(struct file *filp, poll_table *wait) |
170 | { | 170 | { |
171 | struct vmci_host_dev *vmci_host_dev = filp->private_data; | 171 | struct vmci_host_dev *vmci_host_dev = filp->private_data; |
172 | struct vmci_ctx *context = vmci_host_dev->context; | 172 | struct vmci_ctx *context = vmci_host_dev->context; |
173 | unsigned int mask = 0; | 173 | __poll_t mask = 0; |
174 | 174 | ||
175 | if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) { | 175 | if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) { |
176 | /* Check for VMCI calls to this VM context. */ | 176 | /* Check for VMCI calls to this VM context. */ |
diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 7900ed066d8a..e412dfdda7dd 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c | |||
@@ -2638,12 +2638,12 @@ static long ca8210_test_int_ioctl( | |||
2638 | * | 2638 | * |
2639 | * Return: set of poll return flags | 2639 | * Return: set of poll return flags |
2640 | */ | 2640 | */ |
2641 | static unsigned int ca8210_test_int_poll( | 2641 | static __poll_t ca8210_test_int_poll( |
2642 | struct file *filp, | 2642 | struct file *filp, |
2643 | struct poll_table_struct *ptable | 2643 | struct poll_table_struct *ptable |
2644 | ) | 2644 | ) |
2645 | { | 2645 | { |
2646 | unsigned int return_flags = 0; | 2646 | __poll_t return_flags = 0; |
2647 | struct ca8210_priv *priv = filp->private_data; | 2647 | struct ca8210_priv *priv = filp->private_data; |
2648 | 2648 | ||
2649 | poll_wait(filp, &priv->test.readq, ptable); | 2649 | poll_wait(filp, &priv->test.readq, ptable); |
diff --git a/drivers/net/ppp/ppp_async.c b/drivers/net/ppp/ppp_async.c index 1b28e6e702f5..bdc4d23627c5 100644 --- a/drivers/net/ppp/ppp_async.c +++ b/drivers/net/ppp/ppp_async.c | |||
@@ -334,7 +334,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file, | |||
334 | } | 334 | } |
335 | 335 | ||
336 | /* No kernel lock - fine */ | 336 | /* No kernel lock - fine */ |
337 | static unsigned int | 337 | static __poll_t |
338 | ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) | 338 | ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) |
339 | { | 339 | { |
340 | return 0; | 340 | return 0; |
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index d8e5747ff4e3..422723230f8b 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c | |||
@@ -531,10 +531,10 @@ static ssize_t ppp_write(struct file *file, const char __user *buf, | |||
531 | } | 531 | } |
532 | 532 | ||
533 | /* No kernel lock - fine */ | 533 | /* No kernel lock - fine */ |
534 | static unsigned int ppp_poll(struct file *file, poll_table *wait) | 534 | static __poll_t ppp_poll(struct file *file, poll_table *wait) |
535 | { | 535 | { |
536 | struct ppp_file *pf = file->private_data; | 536 | struct ppp_file *pf = file->private_data; |
537 | unsigned int mask; | 537 | __poll_t mask; |
538 | 538 | ||
539 | if (!pf) | 539 | if (!pf) |
540 | return 0; | 540 | return 0; |
diff --git a/drivers/net/ppp/ppp_synctty.c b/drivers/net/ppp/ppp_synctty.c index 7196f00f0991..047f6c68a441 100644 --- a/drivers/net/ppp/ppp_synctty.c +++ b/drivers/net/ppp/ppp_synctty.c | |||
@@ -327,7 +327,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, | |||
327 | } | 327 | } |
328 | 328 | ||
329 | /* No kernel lock - fine */ | 329 | /* No kernel lock - fine */ |
330 | static unsigned int | 330 | static __poll_t |
331 | ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait) | 331 | ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait) |
332 | { | 332 | { |
333 | return 0; | 333 | return 0; |
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index e9489b88407c..c4e91c73568e 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c | |||
@@ -572,10 +572,10 @@ static int tap_release(struct inode *inode, struct file *file) | |||
572 | return 0; | 572 | return 0; |
573 | } | 573 | } |
574 | 574 | ||
575 | static unsigned int tap_poll(struct file *file, poll_table *wait) | 575 | static __poll_t tap_poll(struct file *file, poll_table *wait) |
576 | { | 576 | { |
577 | struct tap_queue *q = file->private_data; | 577 | struct tap_queue *q = file->private_data; |
578 | unsigned int mask = POLLERR; | 578 | __poll_t mask = POLLERR; |
579 | 579 | ||
580 | if (!q) | 580 | if (!q) |
581 | goto out; | 581 | goto out; |
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 95749006d687..130b049ac3da 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1248,12 +1248,12 @@ static void tun_net_init(struct net_device *dev) | |||
1248 | /* Character device part */ | 1248 | /* Character device part */ |
1249 | 1249 | ||
1250 | /* Poll */ | 1250 | /* Poll */ |
1251 | static unsigned int tun_chr_poll(struct file *file, poll_table *wait) | 1251 | static __poll_t tun_chr_poll(struct file *file, poll_table *wait) |
1252 | { | 1252 | { |
1253 | struct tun_file *tfile = file->private_data; | 1253 | struct tun_file *tfile = file->private_data; |
1254 | struct tun_struct *tun = tun_get(tfile); | 1254 | struct tun_struct *tun = tun_get(tfile); |
1255 | struct sock *sk; | 1255 | struct sock *sk; |
1256 | unsigned int mask = 0; | 1256 | __poll_t mask = 0; |
1257 | 1257 | ||
1258 | if (!tun) | 1258 | if (!tun) |
1259 | return POLLERR; | 1259 | return POLLERR; |
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 6ea16260ec76..f6b000ddcd15 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -924,7 +924,7 @@ static int chrdev_tx_done(struct channel_data *chan, int size) | |||
924 | return 1; | 924 | return 1; |
925 | } | 925 | } |
926 | 926 | ||
927 | static unsigned int cosa_poll(struct file *file, poll_table *poll) | 927 | static __poll_t cosa_poll(struct file *file, poll_table *poll) |
928 | { | 928 | { |
929 | pr_info("cosa_poll is here\n"); | 929 | pr_info("cosa_poll is here\n"); |
930 | return 0; | 930 | return 0; |
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c b/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c index f4fdad2ed319..72c55d1f8903 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00debug.c | |||
@@ -301,7 +301,7 @@ exit: | |||
301 | return status; | 301 | return status; |
302 | } | 302 | } |
303 | 303 | ||
304 | static unsigned int rt2x00debug_poll_queue_dump(struct file *file, | 304 | static __poll_t rt2x00debug_poll_queue_dump(struct file *file, |
305 | poll_table *wait) | 305 | poll_table *wait) |
306 | { | 306 | { |
307 | struct rt2x00debug_intf *intf = file->private_data; | 307 | struct rt2x00debug_intf *intf = file->private_data; |
diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c index 730cc897b94d..fab143a17f9c 100644 --- a/drivers/pci/switch/switchtec.c +++ b/drivers/pci/switch/switchtec.c | |||
@@ -510,11 +510,11 @@ out: | |||
510 | return -EBADMSG; | 510 | return -EBADMSG; |
511 | } | 511 | } |
512 | 512 | ||
513 | static unsigned int switchtec_dev_poll(struct file *filp, poll_table *wait) | 513 | static __poll_t switchtec_dev_poll(struct file *filp, poll_table *wait) |
514 | { | 514 | { |
515 | struct switchtec_user *stuser = filp->private_data; | 515 | struct switchtec_user *stuser = filp->private_data; |
516 | struct switchtec_dev *stdev = stuser->stdev; | 516 | struct switchtec_dev *stdev = stuser->stdev; |
517 | int ret = 0; | 517 | __poll_t ret = 0; |
518 | 518 | ||
519 | poll_wait(filp, &stuser->comp.wait, wait); | 519 | poll_wait(filp, &stuser->comp.wait, wait); |
520 | poll_wait(filp, &stdev->event_wq, wait); | 520 | poll_wait(filp, &stdev->event_wq, wait); |
diff --git a/drivers/platform/chrome/cros_ec_debugfs.c b/drivers/platform/chrome/cros_ec_debugfs.c index 4cc66f405760..603fa8bd85d3 100644 --- a/drivers/platform/chrome/cros_ec_debugfs.c +++ b/drivers/platform/chrome/cros_ec_debugfs.c | |||
@@ -191,11 +191,11 @@ error: | |||
191 | return ret; | 191 | return ret; |
192 | } | 192 | } |
193 | 193 | ||
194 | static unsigned int cros_ec_console_log_poll(struct file *file, | 194 | static __poll_t cros_ec_console_log_poll(struct file *file, |
195 | poll_table *wait) | 195 | poll_table *wait) |
196 | { | 196 | { |
197 | struct cros_ec_debugfs *debug_info = file->private_data; | 197 | struct cros_ec_debugfs *debug_info = file->private_data; |
198 | unsigned int mask = 0; | 198 | __poll_t mask = 0; |
199 | 199 | ||
200 | poll_wait(file, &debug_info->log_wq, wait); | 200 | poll_wait(file, &debug_info->log_wq, wait); |
201 | 201 | ||
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index 0578d34eec3f..999f1152655a 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c | |||
@@ -536,10 +536,10 @@ static ssize_t goldfish_pipe_write(struct file *filp, | |||
536 | /* is_write */ 1); | 536 | /* is_write */ 1); |
537 | } | 537 | } |
538 | 538 | ||
539 | static unsigned int goldfish_pipe_poll(struct file *filp, poll_table *wait) | 539 | static __poll_t goldfish_pipe_poll(struct file *filp, poll_table *wait) |
540 | { | 540 | { |
541 | struct goldfish_pipe *pipe = filp->private_data; | 541 | struct goldfish_pipe *pipe = filp->private_data; |
542 | unsigned int mask = 0; | 542 | __poll_t mask = 0; |
543 | int status; | 543 | int status; |
544 | 544 | ||
545 | poll_wait(filp, &pipe->wake_queue, wait); | 545 | poll_wait(filp, &pipe->wake_queue, wait); |
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 935121814c97..a4fabf9d75f3 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -4124,7 +4124,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, | |||
4124 | return ret; | 4124 | return ret; |
4125 | } | 4125 | } |
4126 | 4126 | ||
4127 | static unsigned int sonypi_misc_poll(struct file *file, poll_table *wait) | 4127 | static __poll_t sonypi_misc_poll(struct file *file, poll_table *wait) |
4128 | { | 4128 | { |
4129 | poll_wait(file, &sonypi_compat.fifo_proc_list, wait); | 4129 | poll_wait(file, &sonypi_compat.fifo_proc_list, wait); |
4130 | if (kfifo_len(&sonypi_compat.fifo)) | 4130 | if (kfifo_len(&sonypi_compat.fifo)) |
diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c index 6eb0db37dd88..1d42385b1aa5 100644 --- a/drivers/pps/pps.c +++ b/drivers/pps/pps.c | |||
@@ -49,7 +49,7 @@ static DEFINE_IDR(pps_idr); | |||
49 | * Char device methods | 49 | * Char device methods |
50 | */ | 50 | */ |
51 | 51 | ||
52 | static unsigned int pps_cdev_poll(struct file *file, poll_table *wait) | 52 | static __poll_t pps_cdev_poll(struct file *file, poll_table *wait) |
53 | { | 53 | { |
54 | struct pps_device *pps = file->private_data; | 54 | struct pps_device *pps = file->private_data; |
55 | 55 | ||
diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index 58a97d420572..a593b4cf47bf 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c | |||
@@ -280,7 +280,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) | |||
280 | return err; | 280 | return err; |
281 | } | 281 | } |
282 | 282 | ||
283 | unsigned int ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait) | 283 | __poll_t ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait) |
284 | { | 284 | { |
285 | struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); | 285 | struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); |
286 | 286 | ||
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h index b86f1bfecd6f..c7c62b782cb9 100644 --- a/drivers/ptp/ptp_private.h +++ b/drivers/ptp/ptp_private.h | |||
@@ -90,7 +90,7 @@ int ptp_open(struct posix_clock *pc, fmode_t fmode); | |||
90 | ssize_t ptp_read(struct posix_clock *pc, | 90 | ssize_t ptp_read(struct posix_clock *pc, |
91 | uint flags, char __user *buf, size_t cnt); | 91 | uint flags, char __user *buf, size_t cnt); |
92 | 92 | ||
93 | uint ptp_poll(struct posix_clock *pc, | 93 | __poll_t ptp_poll(struct posix_clock *pc, |
94 | struct file *fp, poll_table *wait); | 94 | struct file *fp, poll_table *wait); |
95 | 95 | ||
96 | /* | 96 | /* |
diff --git a/drivers/rapidio/devices/rio_mport_cdev.c b/drivers/rapidio/devices/rio_mport_cdev.c index ec4bc1515f0d..6092b3a5978e 100644 --- a/drivers/rapidio/devices/rio_mport_cdev.c +++ b/drivers/rapidio/devices/rio_mport_cdev.c | |||
@@ -2319,7 +2319,7 @@ static int mport_cdev_mmap(struct file *filp, struct vm_area_struct *vma) | |||
2319 | return ret; | 2319 | return ret; |
2320 | } | 2320 | } |
2321 | 2321 | ||
2322 | static unsigned int mport_cdev_poll(struct file *filp, poll_table *wait) | 2322 | static __poll_t mport_cdev_poll(struct file *filp, poll_table *wait) |
2323 | { | 2323 | { |
2324 | struct mport_cdev_priv *priv = filp->private_data; | 2324 | struct mport_cdev_priv *priv = filp->private_data; |
2325 | 2325 | ||
diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index b01774e9fac0..e540ca362d08 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c | |||
@@ -919,12 +919,12 @@ static int qcom_smd_trysend(struct rpmsg_endpoint *ept, void *data, int len) | |||
919 | return __qcom_smd_send(qsept->qsch, data, len, false); | 919 | return __qcom_smd_send(qsept->qsch, data, len, false); |
920 | } | 920 | } |
921 | 921 | ||
922 | static unsigned int qcom_smd_poll(struct rpmsg_endpoint *ept, | 922 | static __poll_t qcom_smd_poll(struct rpmsg_endpoint *ept, |
923 | struct file *filp, poll_table *wait) | 923 | struct file *filp, poll_table *wait) |
924 | { | 924 | { |
925 | struct qcom_smd_endpoint *qsept = to_smd_endpoint(ept); | 925 | struct qcom_smd_endpoint *qsept = to_smd_endpoint(ept); |
926 | struct qcom_smd_channel *channel = qsept->qsch; | 926 | struct qcom_smd_channel *channel = qsept->qsch; |
927 | unsigned int mask = 0; | 927 | __poll_t mask = 0; |
928 | 928 | ||
929 | poll_wait(filp, &channel->fblockread_event, wait); | 929 | poll_wait(filp, &channel->fblockread_event, wait); |
930 | 930 | ||
diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index e0996fce3963..e622fcda30fa 100644 --- a/drivers/rpmsg/rpmsg_char.c +++ b/drivers/rpmsg/rpmsg_char.c | |||
@@ -256,10 +256,10 @@ free_kbuf: | |||
256 | return ret < 0 ? ret : len; | 256 | return ret < 0 ? ret : len; |
257 | } | 257 | } |
258 | 258 | ||
259 | static unsigned int rpmsg_eptdev_poll(struct file *filp, poll_table *wait) | 259 | static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_table *wait) |
260 | { | 260 | { |
261 | struct rpmsg_eptdev *eptdev = filp->private_data; | 261 | struct rpmsg_eptdev *eptdev = filp->private_data; |
262 | unsigned int mask = 0; | 262 | __poll_t mask = 0; |
263 | 263 | ||
264 | if (!eptdev->ept) | 264 | if (!eptdev->ept) |
265 | return POLLERR; | 265 | return POLLERR; |
diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c index dffa3aab7178..5a081762afcc 100644 --- a/drivers/rpmsg/rpmsg_core.c +++ b/drivers/rpmsg/rpmsg_core.c | |||
@@ -247,7 +247,7 @@ EXPORT_SYMBOL(rpmsg_trysendto); | |||
247 | * | 247 | * |
248 | * Returns mask representing the current state of the endpoint's send buffers | 248 | * Returns mask representing the current state of the endpoint's send buffers |
249 | */ | 249 | */ |
250 | unsigned int rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, | 250 | __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, |
251 | poll_table *wait) | 251 | poll_table *wait) |
252 | { | 252 | { |
253 | if (WARN_ON(!ept)) | 253 | if (WARN_ON(!ept)) |
diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h index 0cf9c7e2ee83..685aa70e9cbe 100644 --- a/drivers/rpmsg/rpmsg_internal.h +++ b/drivers/rpmsg/rpmsg_internal.h | |||
@@ -71,7 +71,7 @@ struct rpmsg_endpoint_ops { | |||
71 | int (*trysendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); | 71 | int (*trysendto)(struct rpmsg_endpoint *ept, void *data, int len, u32 dst); |
72 | int (*trysend_offchannel)(struct rpmsg_endpoint *ept, u32 src, u32 dst, | 72 | int (*trysend_offchannel)(struct rpmsg_endpoint *ept, u32 src, u32 dst, |
73 | void *data, int len); | 73 | void *data, int len); |
74 | unsigned int (*poll)(struct rpmsg_endpoint *ept, struct file *filp, | 74 | __poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp, |
75 | poll_table *wait); | 75 | poll_table *wait); |
76 | }; | 76 | }; |
77 | 77 | ||
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index 215eac68ae2d..5a7b30d0773b 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c | |||
@@ -194,7 +194,7 @@ rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
194 | return ret; | 194 | return ret; |
195 | } | 195 | } |
196 | 196 | ||
197 | static unsigned int rtc_dev_poll(struct file *file, poll_table *wait) | 197 | static __poll_t rtc_dev_poll(struct file *file, poll_table *wait) |
198 | { | 198 | { |
199 | struct rtc_device *rtc = file->private_data; | 199 | struct rtc_device *rtc = file->private_data; |
200 | unsigned long data; | 200 | unsigned long data; |
diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c index a7917d473774..0c075d100252 100644 --- a/drivers/s390/block/dasd_eer.c +++ b/drivers/s390/block/dasd_eer.c | |||
@@ -661,9 +661,9 @@ static ssize_t dasd_eer_read(struct file *filp, char __user *buf, | |||
661 | return effective_count; | 661 | return effective_count; |
662 | } | 662 | } |
663 | 663 | ||
664 | static unsigned int dasd_eer_poll(struct file *filp, poll_table *ptable) | 664 | static __poll_t dasd_eer_poll(struct file *filp, poll_table *ptable) |
665 | { | 665 | { |
666 | unsigned int mask; | 666 | __poll_t mask; |
667 | unsigned long flags; | 667 | unsigned long flags; |
668 | struct eerbuffer *eerb; | 668 | struct eerbuffer *eerb; |
669 | 669 | ||
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c index 027ac6ae5eea..de7b169004a2 100644 --- a/drivers/s390/char/monreader.c +++ b/drivers/s390/char/monreader.c | |||
@@ -428,7 +428,7 @@ out_copy: | |||
428 | return count; | 428 | return count; |
429 | } | 429 | } |
430 | 430 | ||
431 | static unsigned int mon_poll(struct file *filp, struct poll_table_struct *p) | 431 | static __poll_t mon_poll(struct file *filp, struct poll_table_struct *p) |
432 | { | 432 | { |
433 | struct mon_private *monpriv = filp->private_data; | 433 | struct mon_private *monpriv = filp->private_data; |
434 | 434 | ||
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index cc54bdb5c712..2c8cfa27909d 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c | |||
@@ -7004,9 +7004,9 @@ static int megasas_mgmt_fasync(int fd, struct file *filep, int mode) | |||
7004 | /** | 7004 | /** |
7005 | * megasas_mgmt_poll - char node "poll" entry point | 7005 | * megasas_mgmt_poll - char node "poll" entry point |
7006 | * */ | 7006 | * */ |
7007 | static unsigned int megasas_mgmt_poll(struct file *file, poll_table *wait) | 7007 | static __poll_t megasas_mgmt_poll(struct file *file, poll_table *wait) |
7008 | { | 7008 | { |
7009 | unsigned int mask; | 7009 | __poll_t mask; |
7010 | unsigned long flags; | 7010 | unsigned long flags; |
7011 | 7011 | ||
7012 | poll_wait(file, &megasas_poll_wait, wait); | 7012 | poll_wait(file, &megasas_poll_wait, wait); |
diff --git a/drivers/scsi/mpt3sas/mpt3sas_ctl.c b/drivers/scsi/mpt3sas/mpt3sas_ctl.c index b4c374b08e5e..537de1b7e8e5 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_ctl.c +++ b/drivers/scsi/mpt3sas/mpt3sas_ctl.c | |||
@@ -534,7 +534,7 @@ _ctl_fasync(int fd, struct file *filep, int mode) | |||
534 | * @wait - | 534 | * @wait - |
535 | * | 535 | * |
536 | */ | 536 | */ |
537 | static unsigned int | 537 | static __poll_t |
538 | _ctl_poll(struct file *filep, poll_table *wait) | 538 | _ctl_poll(struct file *filep, poll_table *wait) |
539 | { | 539 | { |
540 | struct MPT3SAS_ADAPTER *ioc; | 540 | struct MPT3SAS_ADAPTER *ioc; |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index f098877eed4a..c746c6936ee4 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1140,10 +1140,10 @@ static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned lon | |||
1140 | } | 1140 | } |
1141 | #endif | 1141 | #endif |
1142 | 1142 | ||
1143 | static unsigned int | 1143 | static __poll_t |
1144 | sg_poll(struct file *filp, poll_table * wait) | 1144 | sg_poll(struct file *filp, poll_table * wait) |
1145 | { | 1145 | { |
1146 | unsigned int res = 0; | 1146 | __poll_t res = 0; |
1147 | Sg_device *sdp; | 1147 | Sg_device *sdp; |
1148 | Sg_fd *sfp; | 1148 | Sg_fd *sfp; |
1149 | Sg_request *srp; | 1149 | Sg_request *srp; |
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index e19e395b0e44..491b54d986eb 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c | |||
@@ -2276,9 +2276,9 @@ done: | |||
2276 | return retval; | 2276 | return retval; |
2277 | } | 2277 | } |
2278 | 2278 | ||
2279 | static unsigned int comedi_poll(struct file *file, poll_table *wait) | 2279 | static __poll_t comedi_poll(struct file *file, poll_table *wait) |
2280 | { | 2280 | { |
2281 | unsigned int mask = 0; | 2281 | __poll_t mask = 0; |
2282 | struct comedi_file *cfp = file->private_data; | 2282 | struct comedi_file *cfp = file->private_data; |
2283 | struct comedi_device *dev = cfp->dev; | 2283 | struct comedi_device *dev = cfp->dev; |
2284 | struct comedi_subdevice *s, *s_read; | 2284 | struct comedi_subdevice *s, *s_read; |
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index 1e5cbc893496..69f530972273 100644 --- a/drivers/staging/most/aim-cdev/cdev.c +++ b/drivers/staging/most/aim-cdev/cdev.c | |||
@@ -287,10 +287,10 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) | |||
287 | return copied; | 287 | return copied; |
288 | } | 288 | } |
289 | 289 | ||
290 | static unsigned int aim_poll(struct file *filp, poll_table *wait) | 290 | static __poll_t aim_poll(struct file *filp, poll_table *wait) |
291 | { | 291 | { |
292 | struct aim_channel *c = filp->private_data; | 292 | struct aim_channel *c = filp->private_data; |
293 | unsigned int mask = 0; | 293 | __poll_t mask = 0; |
294 | 294 | ||
295 | poll_wait(filp, &c->wq, wait); | 295 | poll_wait(filp, &c->wq, wait); |
296 | 296 | ||
diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index e0748416aee5..7783bc2dd9f5 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c | |||
@@ -209,11 +209,11 @@ static ssize_t aim_vdev_read(struct file *filp, char __user *buf, | |||
209 | return ret; | 209 | return ret; |
210 | } | 210 | } |
211 | 211 | ||
212 | static unsigned int aim_vdev_poll(struct file *filp, poll_table *wait) | 212 | static __poll_t aim_vdev_poll(struct file *filp, poll_table *wait) |
213 | { | 213 | { |
214 | struct aim_fh *fh = filp->private_data; | 214 | struct aim_fh *fh = filp->private_data; |
215 | struct most_video_dev *mdev = fh->mdev; | 215 | struct most_video_dev *mdev = fh->mdev; |
216 | unsigned int mask = 0; | 216 | __poll_t mask = 0; |
217 | 217 | ||
218 | /* only wait if no data is available */ | 218 | /* only wait if no data is available */ |
219 | if (!data_ready(mdev)) | 219 | if (!data_ready(mdev)) |
diff --git a/drivers/staging/speakup/speakup_soft.c b/drivers/staging/speakup/speakup_soft.c index d99daf69e501..585c6aa124cd 100644 --- a/drivers/staging/speakup/speakup_soft.c +++ b/drivers/staging/speakup/speakup_soft.c | |||
@@ -326,10 +326,10 @@ static ssize_t softsynth_write(struct file *fp, const char __user *buf, | |||
326 | return count; | 326 | return count; |
327 | } | 327 | } |
328 | 328 | ||
329 | static unsigned int softsynth_poll(struct file *fp, struct poll_table_struct *wait) | 329 | static __poll_t softsynth_poll(struct file *fp, struct poll_table_struct *wait) |
330 | { | 330 | { |
331 | unsigned long flags; | 331 | unsigned long flags; |
332 | int ret = 0; | 332 | __poll_t ret = 0; |
333 | 333 | ||
334 | poll_wait(fp, &speakup_event, wait); | 334 | poll_wait(fp, &speakup_event, wait); |
335 | 335 | ||
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 5131bdc9e765..0edf4fcfea23 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c | |||
@@ -2457,10 +2457,10 @@ static ssize_t gsmld_write(struct tty_struct *tty, struct file *file, | |||
2457 | * Called without the kernel lock held - fine | 2457 | * Called without the kernel lock held - fine |
2458 | */ | 2458 | */ |
2459 | 2459 | ||
2460 | static unsigned int gsmld_poll(struct tty_struct *tty, struct file *file, | 2460 | static __poll_t gsmld_poll(struct tty_struct *tty, struct file *file, |
2461 | poll_table *wait) | 2461 | poll_table *wait) |
2462 | { | 2462 | { |
2463 | unsigned int mask = 0; | 2463 | __poll_t mask = 0; |
2464 | struct gsm_mux *gsm = tty->disc_data; | 2464 | struct gsm_mux *gsm = tty->disc_data; |
2465 | 2465 | ||
2466 | poll_wait(file, &tty->read_wait, wait); | 2466 | poll_wait(file, &tty->read_wait, wait); |
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c index eea7b6cb3cc4..929434ebee50 100644 --- a/drivers/tty/n_hdlc.c +++ b/drivers/tty/n_hdlc.c | |||
@@ -180,7 +180,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file, | |||
180 | const unsigned char *buf, size_t nr); | 180 | const unsigned char *buf, size_t nr); |
181 | static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, | 181 | static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, |
182 | unsigned int cmd, unsigned long arg); | 182 | unsigned int cmd, unsigned long arg); |
183 | static unsigned int n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, | 183 | static __poll_t n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, |
184 | poll_table *wait); | 184 | poll_table *wait); |
185 | static int n_hdlc_tty_open(struct tty_struct *tty); | 185 | static int n_hdlc_tty_open(struct tty_struct *tty); |
186 | static void n_hdlc_tty_close(struct tty_struct *tty); | 186 | static void n_hdlc_tty_close(struct tty_struct *tty); |
@@ -796,11 +796,11 @@ static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, | |||
796 | * to caller. | 796 | * to caller. |
797 | * Returns a bit mask containing info on which ops will not block. | 797 | * Returns a bit mask containing info on which ops will not block. |
798 | */ | 798 | */ |
799 | static unsigned int n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, | 799 | static __poll_t n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, |
800 | poll_table *wait) | 800 | poll_table *wait) |
801 | { | 801 | { |
802 | struct n_hdlc *n_hdlc = tty2n_hdlc (tty); | 802 | struct n_hdlc *n_hdlc = tty2n_hdlc (tty); |
803 | unsigned int mask = 0; | 803 | __poll_t mask = 0; |
804 | 804 | ||
805 | if (debuglevel >= DEBUG_LEVEL_INFO) | 805 | if (debuglevel >= DEBUG_LEVEL_INFO) |
806 | printk("%s(%d)n_hdlc_tty_poll() called\n",__FILE__,__LINE__); | 806 | printk("%s(%d)n_hdlc_tty_poll() called\n",__FILE__,__LINE__); |
diff --git a/drivers/tty/n_r3964.c b/drivers/tty/n_r3964.c index 30bb0900cd2f..e81d3db8ad63 100644 --- a/drivers/tty/n_r3964.c +++ b/drivers/tty/n_r3964.c | |||
@@ -135,7 +135,7 @@ static ssize_t r3964_write(struct tty_struct *tty, struct file *file, | |||
135 | static int r3964_ioctl(struct tty_struct *tty, struct file *file, | 135 | static int r3964_ioctl(struct tty_struct *tty, struct file *file, |
136 | unsigned int cmd, unsigned long arg); | 136 | unsigned int cmd, unsigned long arg); |
137 | static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old); | 137 | static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old); |
138 | static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, | 138 | static __poll_t r3964_poll(struct tty_struct *tty, struct file *file, |
139 | struct poll_table_struct *wait); | 139 | struct poll_table_struct *wait); |
140 | static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, | 140 | static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, |
141 | char *fp, int count); | 141 | char *fp, int count); |
@@ -1216,14 +1216,14 @@ static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old) | |||
1216 | } | 1216 | } |
1217 | 1217 | ||
1218 | /* Called without the kernel lock held - fine */ | 1218 | /* Called without the kernel lock held - fine */ |
1219 | static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, | 1219 | static __poll_t r3964_poll(struct tty_struct *tty, struct file *file, |
1220 | struct poll_table_struct *wait) | 1220 | struct poll_table_struct *wait) |
1221 | { | 1221 | { |
1222 | struct r3964_info *pInfo = tty->disc_data; | 1222 | struct r3964_info *pInfo = tty->disc_data; |
1223 | struct r3964_client_info *pClient; | 1223 | struct r3964_client_info *pClient; |
1224 | struct r3964_message *pMsg = NULL; | 1224 | struct r3964_message *pMsg = NULL; |
1225 | unsigned long flags; | 1225 | unsigned long flags; |
1226 | int result = POLLOUT; | 1226 | __poll_t result = POLLOUT; |
1227 | 1227 | ||
1228 | TRACE_L("POLL"); | 1228 | TRACE_L("POLL"); |
1229 | 1229 | ||
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 427e0d5d8f13..081bbbb7d49c 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c | |||
@@ -2368,10 +2368,10 @@ break_out: | |||
2368 | * Called without the kernel lock held - fine | 2368 | * Called without the kernel lock held - fine |
2369 | */ | 2369 | */ |
2370 | 2370 | ||
2371 | static unsigned int n_tty_poll(struct tty_struct *tty, struct file *file, | 2371 | static __poll_t n_tty_poll(struct tty_struct *tty, struct file *file, |
2372 | poll_table *wait) | 2372 | poll_table *wait) |
2373 | { | 2373 | { |
2374 | unsigned int mask = 0; | 2374 | __poll_t mask = 0; |
2375 | 2375 | ||
2376 | poll_wait(file, &tty->read_wait, wait); | 2376 | poll_wait(file, &tty->read_wait, wait); |
2377 | poll_wait(file, &tty->write_wait, wait); | 2377 | poll_wait(file, &tty->write_wait, wait); |
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 287f9a4eef6d..00d14d6a76bb 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c | |||
@@ -144,7 +144,7 @@ static ssize_t tty_read(struct file *, char __user *, size_t, loff_t *); | |||
144 | static ssize_t tty_write(struct file *, const char __user *, size_t, loff_t *); | 144 | static ssize_t tty_write(struct file *, const char __user *, size_t, loff_t *); |
145 | ssize_t redirected_tty_write(struct file *, const char __user *, | 145 | ssize_t redirected_tty_write(struct file *, const char __user *, |
146 | size_t, loff_t *); | 146 | size_t, loff_t *); |
147 | static unsigned int tty_poll(struct file *, poll_table *); | 147 | static __poll_t tty_poll(struct file *, poll_table *); |
148 | static int tty_open(struct inode *, struct file *); | 148 | static int tty_open(struct inode *, struct file *); |
149 | long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 149 | long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
150 | #ifdef CONFIG_COMPAT | 150 | #ifdef CONFIG_COMPAT |
@@ -443,7 +443,7 @@ static ssize_t hung_up_tty_write(struct file *file, const char __user *buf, | |||
443 | } | 443 | } |
444 | 444 | ||
445 | /* No kernel lock held - none needed ;) */ | 445 | /* No kernel lock held - none needed ;) */ |
446 | static unsigned int hung_up_tty_poll(struct file *filp, poll_table *wait) | 446 | static __poll_t hung_up_tty_poll(struct file *filp, poll_table *wait) |
447 | { | 447 | { |
448 | return POLLIN | POLLOUT | POLLERR | POLLHUP | POLLRDNORM | POLLWRNORM; | 448 | return POLLIN | POLLOUT | POLLERR | POLLHUP | POLLRDNORM | POLLWRNORM; |
449 | } | 449 | } |
@@ -2055,7 +2055,7 @@ retry_open: | |||
2055 | * may be re-entered freely by other callers. | 2055 | * may be re-entered freely by other callers. |
2056 | */ | 2056 | */ |
2057 | 2057 | ||
2058 | static unsigned int tty_poll(struct file *filp, poll_table *wait) | 2058 | static __poll_t tty_poll(struct file *filp, poll_table *wait) |
2059 | { | 2059 | { |
2060 | struct tty_struct *tty = file_tty(filp); | 2060 | struct tty_struct *tty = file_tty(filp); |
2061 | struct tty_ldisc *ld; | 2061 | struct tty_ldisc *ld; |
diff --git a/drivers/tty/vt/vc_screen.c b/drivers/tty/vt/vc_screen.c index 85b6634f518a..3e64ccd0040f 100644 --- a/drivers/tty/vt/vc_screen.c +++ b/drivers/tty/vt/vc_screen.c | |||
@@ -559,11 +559,11 @@ unlock_out: | |||
559 | return ret; | 559 | return ret; |
560 | } | 560 | } |
561 | 561 | ||
562 | static unsigned int | 562 | static __poll_t |
563 | vcs_poll(struct file *file, poll_table *wait) | 563 | vcs_poll(struct file *file, poll_table *wait) |
564 | { | 564 | { |
565 | struct vcs_poll_data *poll = vcs_poll_data_get(file); | 565 | struct vcs_poll_data *poll = vcs_poll_data_get(file); |
566 | int ret = DEFAULT_POLLMASK|POLLERR|POLLPRI; | 566 | __poll_t ret = DEFAULT_POLLMASK|POLLERR|POLLPRI; |
567 | 567 | ||
568 | if (poll) { | 568 | if (poll) { |
569 | poll_wait(file, &poll->waitq, wait); | 569 | poll_wait(file, &poll->waitq, wait); |
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index ff04b7f8549f..85bc1aaea4a4 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c | |||
@@ -496,7 +496,7 @@ static int uio_release(struct inode *inode, struct file *filep) | |||
496 | return ret; | 496 | return ret; |
497 | } | 497 | } |
498 | 498 | ||
499 | static unsigned int uio_poll(struct file *filep, poll_table *wait) | 499 | static __poll_t uio_poll(struct file *filep, poll_table *wait) |
500 | { | 500 | { |
501 | struct uio_listener *listener = filep->private_data; | 501 | struct uio_listener *listener = filep->private_data; |
502 | struct uio_device *idev = listener->dev; | 502 | struct uio_device *idev = listener->dev; |
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index 6c181a625daf..9627ea6ec3ae 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c | |||
@@ -595,11 +595,11 @@ static int wdm_flush(struct file *file, fl_owner_t id) | |||
595 | return usb_translate_errors(desc->werr); | 595 | return usb_translate_errors(desc->werr); |
596 | } | 596 | } |
597 | 597 | ||
598 | static unsigned int wdm_poll(struct file *file, struct poll_table_struct *wait) | 598 | static __poll_t wdm_poll(struct file *file, struct poll_table_struct *wait) |
599 | { | 599 | { |
600 | struct wdm_device *desc = file->private_data; | 600 | struct wdm_device *desc = file->private_data; |
601 | unsigned long flags; | 601 | unsigned long flags; |
602 | unsigned int mask = 0; | 602 | __poll_t mask = 0; |
603 | 603 | ||
604 | spin_lock_irqsave(&desc->iuspin, flags); | 604 | spin_lock_irqsave(&desc->iuspin, flags); |
605 | if (test_bit(WDM_DISCONNECTING, &desc->flags)) { | 605 | if (test_bit(WDM_DISCONNECTING, &desc->flags)) { |
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index c454885ef4a0..f45e8877771a 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c | |||
@@ -469,9 +469,9 @@ static int usblp_release(struct inode *inode, struct file *file) | |||
469 | } | 469 | } |
470 | 470 | ||
471 | /* No kernel lock - fine */ | 471 | /* No kernel lock - fine */ |
472 | static unsigned int usblp_poll(struct file *file, struct poll_table_struct *wait) | 472 | static __poll_t usblp_poll(struct file *file, struct poll_table_struct *wait) |
473 | { | 473 | { |
474 | int ret; | 474 | __poll_t ret; |
475 | unsigned long flags; | 475 | unsigned long flags; |
476 | 476 | ||
477 | struct usblp *usblp = file->private_data; | 477 | struct usblp *usblp = file->private_data; |
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 0b8b0f3bdd2f..7ea67a55be10 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c | |||
@@ -1257,10 +1257,10 @@ static int usbtmc_fasync(int fd, struct file *file, int on) | |||
1257 | return fasync_helper(fd, file, on, &data->fasync); | 1257 | return fasync_helper(fd, file, on, &data->fasync); |
1258 | } | 1258 | } |
1259 | 1259 | ||
1260 | static unsigned int usbtmc_poll(struct file *file, poll_table *wait) | 1260 | static __poll_t usbtmc_poll(struct file *file, poll_table *wait) |
1261 | { | 1261 | { |
1262 | struct usbtmc_device_data *data = file->private_data; | 1262 | struct usbtmc_device_data *data = file->private_data; |
1263 | unsigned int mask; | 1263 | __poll_t mask; |
1264 | 1264 | ||
1265 | mutex_lock(&data->io_mutex); | 1265 | mutex_lock(&data->io_mutex); |
1266 | 1266 | ||
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index c2cf62b7043a..e2cec448779e 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
@@ -622,7 +622,7 @@ static ssize_t usb_device_read(struct file *file, char __user *buf, | |||
622 | } | 622 | } |
623 | 623 | ||
624 | /* Kernel lock for "lastev" protection */ | 624 | /* Kernel lock for "lastev" protection */ |
625 | static unsigned int usb_device_poll(struct file *file, | 625 | static __poll_t usb_device_poll(struct file *file, |
626 | struct poll_table_struct *wait) | 626 | struct poll_table_struct *wait) |
627 | { | 627 | { |
628 | unsigned int event_count; | 628 | unsigned int event_count; |
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 705c573d0257..929a7380be66 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -2568,11 +2568,11 @@ static long usbdev_compat_ioctl(struct file *file, unsigned int cmd, | |||
2568 | #endif | 2568 | #endif |
2569 | 2569 | ||
2570 | /* No kernel lock - fine */ | 2570 | /* No kernel lock - fine */ |
2571 | static unsigned int usbdev_poll(struct file *file, | 2571 | static __poll_t usbdev_poll(struct file *file, |
2572 | struct poll_table_struct *wait) | 2572 | struct poll_table_struct *wait) |
2573 | { | 2573 | { |
2574 | struct usb_dev_state *ps = file->private_data; | 2574 | struct usb_dev_state *ps = file->private_data; |
2575 | unsigned int mask = 0; | 2575 | __poll_t mask = 0; |
2576 | 2576 | ||
2577 | poll_wait(file, &ps->wait, wait); | 2577 | poll_wait(file, &ps->wait, wait); |
2578 | if (file->f_mode & FMODE_WRITE && !list_empty(&ps->async_completed)) | 2578 | if (file->f_mode & FMODE_WRITE && !list_empty(&ps->async_completed)) |
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 97ea059a7aa4..17efadd6b395 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c | |||
@@ -638,10 +638,10 @@ static long ffs_ep0_ioctl(struct file *file, unsigned code, unsigned long value) | |||
638 | return ret; | 638 | return ret; |
639 | } | 639 | } |
640 | 640 | ||
641 | static unsigned int ffs_ep0_poll(struct file *file, poll_table *wait) | 641 | static __poll_t ffs_ep0_poll(struct file *file, poll_table *wait) |
642 | { | 642 | { |
643 | struct ffs_data *ffs = file->private_data; | 643 | struct ffs_data *ffs = file->private_data; |
644 | unsigned int mask = POLLWRNORM; | 644 | __poll_t mask = POLLWRNORM; |
645 | int ret; | 645 | int ret; |
646 | 646 | ||
647 | poll_wait(file, &ffs->ev.waitq, wait); | 647 | poll_wait(file, &ffs->ev.waitq, wait); |
diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index daae35318a3a..a73efb1c47d0 100644 --- a/drivers/usb/gadget/function/f_hid.c +++ b/drivers/usb/gadget/function/f_hid.c | |||
@@ -413,10 +413,10 @@ release_write_pending_unlocked: | |||
413 | return status; | 413 | return status; |
414 | } | 414 | } |
415 | 415 | ||
416 | static unsigned int f_hidg_poll(struct file *file, poll_table *wait) | 416 | static __poll_t f_hidg_poll(struct file *file, poll_table *wait) |
417 | { | 417 | { |
418 | struct f_hidg *hidg = file->private_data; | 418 | struct f_hidg *hidg = file->private_data; |
419 | unsigned int ret = 0; | 419 | __poll_t ret = 0; |
420 | 420 | ||
421 | poll_wait(file, &hidg->read_queue, wait); | 421 | poll_wait(file, &hidg->read_queue, wait); |
422 | poll_wait(file, &hidg->write_queue, wait); | 422 | poll_wait(file, &hidg->write_queue, wait); |
diff --git a/drivers/usb/gadget/function/f_printer.c b/drivers/usb/gadget/function/f_printer.c index dd607b99eb1d..453578c4af69 100644 --- a/drivers/usb/gadget/function/f_printer.c +++ b/drivers/usb/gadget/function/f_printer.c | |||
@@ -680,12 +680,12 @@ printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync) | |||
680 | return 0; | 680 | return 0; |
681 | } | 681 | } |
682 | 682 | ||
683 | static unsigned int | 683 | static __poll_t |
684 | printer_poll(struct file *fd, poll_table *wait) | 684 | printer_poll(struct file *fd, poll_table *wait) |
685 | { | 685 | { |
686 | struct printer_dev *dev = fd->private_data; | 686 | struct printer_dev *dev = fd->private_data; |
687 | unsigned long flags; | 687 | unsigned long flags; |
688 | int status = 0; | 688 | __poll_t status = 0; |
689 | 689 | ||
690 | mutex_lock(&dev->lock_printer_io); | 690 | mutex_lock(&dev->lock_printer_io); |
691 | spin_lock_irqsave(&dev->lock, flags); | 691 | spin_lock_irqsave(&dev->lock, flags); |
diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c index 9343ec436485..05691254d473 100644 --- a/drivers/usb/gadget/legacy/inode.c +++ b/drivers/usb/gadget/legacy/inode.c | |||
@@ -1209,11 +1209,11 @@ dev_release (struct inode *inode, struct file *fd) | |||
1209 | return 0; | 1209 | return 0; |
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | static unsigned int | 1212 | static __poll_t |
1213 | ep0_poll (struct file *fd, poll_table *wait) | 1213 | ep0_poll (struct file *fd, poll_table *wait) |
1214 | { | 1214 | { |
1215 | struct dev_data *dev = fd->private_data; | 1215 | struct dev_data *dev = fd->private_data; |
1216 | int mask = 0; | 1216 | __poll_t mask = 0; |
1217 | 1217 | ||
1218 | if (dev->state <= STATE_DEV_OPENED) | 1218 | if (dev->state <= STATE_DEV_OPENED) |
1219 | return DEFAULT_POLLMASK; | 1219 | return DEFAULT_POLLMASK; |
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index ad3109490c0f..1fa00b35f4ad 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -677,10 +677,10 @@ static int iowarrior_release(struct inode *inode, struct file *file) | |||
677 | return retval; | 677 | return retval; |
678 | } | 678 | } |
679 | 679 | ||
680 | static unsigned iowarrior_poll(struct file *file, poll_table * wait) | 680 | static __poll_t iowarrior_poll(struct file *file, poll_table * wait) |
681 | { | 681 | { |
682 | struct iowarrior *dev = file->private_data; | 682 | struct iowarrior *dev = file->private_data; |
683 | unsigned int mask = 0; | 683 | __poll_t mask = 0; |
684 | 684 | ||
685 | if (!dev->present) | 685 | if (!dev->present) |
686 | return POLLERR | POLLHUP; | 686 | return POLLERR | POLLHUP; |
diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c index 5c1a3b852453..074398c1e410 100644 --- a/drivers/usb/misc/ldusb.c +++ b/drivers/usb/misc/ldusb.c | |||
@@ -409,10 +409,10 @@ exit: | |||
409 | /** | 409 | /** |
410 | * ld_usb_poll | 410 | * ld_usb_poll |
411 | */ | 411 | */ |
412 | static unsigned int ld_usb_poll(struct file *file, poll_table *wait) | 412 | static __poll_t ld_usb_poll(struct file *file, poll_table *wait) |
413 | { | 413 | { |
414 | struct ld_usb *dev; | 414 | struct ld_usb *dev; |
415 | unsigned int mask = 0; | 415 | __poll_t mask = 0; |
416 | 416 | ||
417 | dev = file->private_data; | 417 | dev = file->private_data; |
418 | 418 | ||
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index c5be6e9e24a5..941c45028828 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c | |||
@@ -224,7 +224,7 @@ static ssize_t tower_write (struct file *file, const char __user *buffer, size_t | |||
224 | static inline void tower_delete (struct lego_usb_tower *dev); | 224 | static inline void tower_delete (struct lego_usb_tower *dev); |
225 | static int tower_open (struct inode *inode, struct file *file); | 225 | static int tower_open (struct inode *inode, struct file *file); |
226 | static int tower_release (struct inode *inode, struct file *file); | 226 | static int tower_release (struct inode *inode, struct file *file); |
227 | static unsigned int tower_poll (struct file *file, poll_table *wait); | 227 | static __poll_t tower_poll (struct file *file, poll_table *wait); |
228 | static loff_t tower_llseek (struct file *file, loff_t off, int whence); | 228 | static loff_t tower_llseek (struct file *file, loff_t off, int whence); |
229 | 229 | ||
230 | static void tower_abort_transfers (struct lego_usb_tower *dev); | 230 | static void tower_abort_transfers (struct lego_usb_tower *dev); |
@@ -509,10 +509,10 @@ static void tower_check_for_read_packet (struct lego_usb_tower *dev) | |||
509 | /** | 509 | /** |
510 | * tower_poll | 510 | * tower_poll |
511 | */ | 511 | */ |
512 | static unsigned int tower_poll (struct file *file, poll_table *wait) | 512 | static __poll_t tower_poll (struct file *file, poll_table *wait) |
513 | { | 513 | { |
514 | struct lego_usb_tower *dev; | 514 | struct lego_usb_tower *dev; |
515 | unsigned int mask = 0; | 515 | __poll_t mask = 0; |
516 | 516 | ||
517 | dev = file->private_data; | 517 | dev = file->private_data; |
518 | 518 | ||
diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index f6ae753ab99b..bc6fa666f75a 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c | |||
@@ -1189,11 +1189,11 @@ static long mon_bin_compat_ioctl(struct file *file, | |||
1189 | } | 1189 | } |
1190 | #endif /* CONFIG_COMPAT */ | 1190 | #endif /* CONFIG_COMPAT */ |
1191 | 1191 | ||
1192 | static unsigned int | 1192 | static __poll_t |
1193 | mon_bin_poll(struct file *file, struct poll_table_struct *wait) | 1193 | mon_bin_poll(struct file *file, struct poll_table_struct *wait) |
1194 | { | 1194 | { |
1195 | struct mon_reader_bin *rp = file->private_data; | 1195 | struct mon_reader_bin *rp = file->private_data; |
1196 | unsigned int mask = 0; | 1196 | __poll_t mask = 0; |
1197 | unsigned long flags; | 1197 | unsigned long flags; |
1198 | 1198 | ||
1199 | if (file->f_mode & FMODE_READ) | 1199 | if (file->f_mode & FMODE_READ) |
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); |
diff --git a/drivers/virt/fsl_hypervisor.c b/drivers/virt/fsl_hypervisor.c index d70ad6d38879..b0597bef4555 100644 --- a/drivers/virt/fsl_hypervisor.c +++ b/drivers/virt/fsl_hypervisor.c | |||
@@ -565,11 +565,11 @@ static irqreturn_t fsl_hv_state_change_isr(int irq, void *data) | |||
565 | /* | 565 | /* |
566 | * Returns a bitmask indicating whether a read will block | 566 | * Returns a bitmask indicating whether a read will block |
567 | */ | 567 | */ |
568 | static unsigned int fsl_hv_poll(struct file *filp, struct poll_table_struct *p) | 568 | static __poll_t fsl_hv_poll(struct file *filp, struct poll_table_struct *p) |
569 | { | 569 | { |
570 | struct doorbell_queue *dbq = filp->private_data; | 570 | struct doorbell_queue *dbq = filp->private_data; |
571 | unsigned long flags; | 571 | unsigned long flags; |
572 | unsigned int mask; | 572 | __poll_t mask; |
573 | 573 | ||
574 | spin_lock_irqsave(&dbq->lock, flags); | 574 | spin_lock_irqsave(&dbq->lock, flags); |
575 | 575 | ||
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index 9729a64ea1a9..72c0416a01cc 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c | |||
@@ -621,9 +621,9 @@ static long evtchn_ioctl(struct file *file, | |||
621 | return rc; | 621 | return rc; |
622 | } | 622 | } |
623 | 623 | ||
624 | static unsigned int evtchn_poll(struct file *file, poll_table *wait) | 624 | static __poll_t evtchn_poll(struct file *file, poll_table *wait) |
625 | { | 625 | { |
626 | unsigned int mask = POLLOUT | POLLWRNORM; | 626 | __poll_t mask = POLLOUT | POLLWRNORM; |
627 | struct per_user_data *u = file->private_data; | 627 | struct per_user_data *u = file->private_data; |
628 | 628 | ||
629 | poll_wait(file, &u->evtchn_wait, wait); | 629 | poll_wait(file, &u->evtchn_wait, wait); |
diff --git a/drivers/xen/mcelog.c b/drivers/xen/mcelog.c index 6cc1c15bcd84..9ade533d9e40 100644 --- a/drivers/xen/mcelog.c +++ b/drivers/xen/mcelog.c | |||
@@ -139,7 +139,7 @@ out: | |||
139 | return err ? err : buf - ubuf; | 139 | return err ? err : buf - ubuf; |
140 | } | 140 | } |
141 | 141 | ||
142 | static unsigned int xen_mce_chrdev_poll(struct file *file, poll_table *wait) | 142 | static __poll_t xen_mce_chrdev_poll(struct file *file, poll_table *wait) |
143 | { | 143 | { |
144 | poll_wait(file, &xen_mce_chrdev_wait, wait); | 144 | poll_wait(file, &xen_mce_chrdev_wait, wait); |
145 | 145 | ||
diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c index 40caa92bff33..74c854955a6b 100644 --- a/drivers/xen/pvcalls-front.c +++ b/drivers/xen/pvcalls-front.c | |||
@@ -878,7 +878,7 @@ received: | |||
878 | return ret; | 878 | return ret; |
879 | } | 879 | } |
880 | 880 | ||
881 | static unsigned int pvcalls_front_poll_passive(struct file *file, | 881 | static __poll_t pvcalls_front_poll_passive(struct file *file, |
882 | struct pvcalls_bedata *bedata, | 882 | struct pvcalls_bedata *bedata, |
883 | struct sock_mapping *map, | 883 | struct sock_mapping *map, |
884 | poll_table *wait) | 884 | poll_table *wait) |
@@ -935,12 +935,12 @@ static unsigned int pvcalls_front_poll_passive(struct file *file, | |||
935 | return 0; | 935 | return 0; |
936 | } | 936 | } |
937 | 937 | ||
938 | static unsigned int pvcalls_front_poll_active(struct file *file, | 938 | static __poll_t pvcalls_front_poll_active(struct file *file, |
939 | struct pvcalls_bedata *bedata, | 939 | struct pvcalls_bedata *bedata, |
940 | struct sock_mapping *map, | 940 | struct sock_mapping *map, |
941 | poll_table *wait) | 941 | poll_table *wait) |
942 | { | 942 | { |
943 | unsigned int mask = 0; | 943 | __poll_t mask = 0; |
944 | int32_t in_error, out_error; | 944 | int32_t in_error, out_error; |
945 | struct pvcalls_data_intf *intf = map->active.ring; | 945 | struct pvcalls_data_intf *intf = map->active.ring; |
946 | 946 | ||
@@ -958,12 +958,12 @@ static unsigned int pvcalls_front_poll_active(struct file *file, | |||
958 | return mask; | 958 | return mask; |
959 | } | 959 | } |
960 | 960 | ||
961 | unsigned int pvcalls_front_poll(struct file *file, struct socket *sock, | 961 | __poll_t pvcalls_front_poll(struct file *file, struct socket *sock, |
962 | poll_table *wait) | 962 | poll_table *wait) |
963 | { | 963 | { |
964 | struct pvcalls_bedata *bedata; | 964 | struct pvcalls_bedata *bedata; |
965 | struct sock_mapping *map; | 965 | struct sock_mapping *map; |
966 | int ret; | 966 | __poll_t ret; |
967 | 967 | ||
968 | pvcalls_enter(); | 968 | pvcalls_enter(); |
969 | if (!pvcalls_front_dev) { | 969 | if (!pvcalls_front_dev) { |
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index f3b089b7c0b6..e17ec3fce590 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c | |||
@@ -645,7 +645,7 @@ static int xenbus_file_release(struct inode *inode, struct file *filp) | |||
645 | return 0; | 645 | return 0; |
646 | } | 646 | } |
647 | 647 | ||
648 | static unsigned int xenbus_file_poll(struct file *file, poll_table *wait) | 648 | static __poll_t xenbus_file_poll(struct file *file, poll_table *wait) |
649 | { | 649 | { |
650 | struct xenbus_file_priv *u = file->private_data; | 650 | struct xenbus_file_priv *u = file->private_data; |
651 | 651 | ||