diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-03 01:02:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-27 16:20:05 -0500 |
commit | 076ccb76e1a6cf0aa5371132efdd502a11e806f1 (patch) | |
tree | 6917e5c6896f75226fe97e09a236c502fe0637f5 | |
parent | 9dd957485d7d896ec18d8e2f9dd410efe71eca34 (diff) |
fs: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/cachefiles/daemon.c | 6 | ||||
-rw-r--r-- | fs/coda/psdev.c | 4 | ||||
-rw-r--r-- | fs/debugfs/file.c | 2 | ||||
-rw-r--r-- | fs/dlm/plock.c | 4 | ||||
-rw-r--r-- | fs/dlm/user.c | 2 | ||||
-rw-r--r-- | fs/ecryptfs/miscdev.c | 4 | ||||
-rw-r--r-- | fs/eventfd.c | 4 | ||||
-rw-r--r-- | fs/eventpoll.c | 2 | ||||
-rw-r--r-- | fs/fuse/dev.c | 4 | ||||
-rw-r--r-- | fs/fuse/file.c | 2 | ||||
-rw-r--r-- | fs/fuse/fuse_i.h | 2 | ||||
-rw-r--r-- | fs/kernfs/file.c | 2 | ||||
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 4 | ||||
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 4 | ||||
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 4 | ||||
-rw-r--r-- | fs/orangefs/devorangefs-req.c | 4 | ||||
-rw-r--r-- | fs/pipe.c | 4 | ||||
-rw-r--r-- | fs/proc/inode.c | 2 | ||||
-rw-r--r-- | fs/proc/kmsg.c | 2 | ||||
-rw-r--r-- | fs/proc/proc_sysctl.c | 4 | ||||
-rw-r--r-- | fs/proc_namespace.c | 4 | ||||
-rw-r--r-- | fs/signalfd.c | 4 | ||||
-rw-r--r-- | fs/timerfd.c | 4 | ||||
-rw-r--r-- | fs/userfaultfd.c | 4 |
24 files changed, 41 insertions, 41 deletions
diff --git a/fs/cachefiles/daemon.c b/fs/cachefiles/daemon.c index 1ee54ffd3a24..7edbd0679952 100644 --- a/fs/cachefiles/daemon.c +++ b/fs/cachefiles/daemon.c | |||
@@ -31,7 +31,7 @@ static ssize_t cachefiles_daemon_read(struct file *, char __user *, size_t, | |||
31 | loff_t *); | 31 | loff_t *); |
32 | static ssize_t cachefiles_daemon_write(struct file *, const char __user *, | 32 | static ssize_t cachefiles_daemon_write(struct file *, const char __user *, |
33 | size_t, loff_t *); | 33 | size_t, loff_t *); |
34 | static unsigned int cachefiles_daemon_poll(struct file *, | 34 | static __poll_t cachefiles_daemon_poll(struct file *, |
35 | struct poll_table_struct *); | 35 | struct poll_table_struct *); |
36 | static int cachefiles_daemon_frun(struct cachefiles_cache *, char *); | 36 | static int cachefiles_daemon_frun(struct cachefiles_cache *, char *); |
37 | static int cachefiles_daemon_fcull(struct cachefiles_cache *, char *); | 37 | static int cachefiles_daemon_fcull(struct cachefiles_cache *, char *); |
@@ -291,11 +291,11 @@ found_command: | |||
291 | * poll for culling state | 291 | * poll for culling state |
292 | * - use POLLOUT to indicate culling state | 292 | * - use POLLOUT to indicate culling state |
293 | */ | 293 | */ |
294 | static unsigned int cachefiles_daemon_poll(struct file *file, | 294 | static __poll_t cachefiles_daemon_poll(struct file *file, |
295 | struct poll_table_struct *poll) | 295 | struct poll_table_struct *poll) |
296 | { | 296 | { |
297 | struct cachefiles_cache *cache = file->private_data; | 297 | struct cachefiles_cache *cache = file->private_data; |
298 | unsigned int mask; | 298 | __poll_t mask; |
299 | 299 | ||
300 | poll_wait(file, &cache->daemon_pollwq, poll); | 300 | poll_wait(file, &cache->daemon_pollwq, poll); |
301 | mask = 0; | 301 | mask = 0; |
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index f40e3953e7fe..49d3c6fda89a 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
@@ -61,10 +61,10 @@ static struct class *coda_psdev_class; | |||
61 | * Device operations | 61 | * Device operations |
62 | */ | 62 | */ |
63 | 63 | ||
64 | static unsigned int coda_psdev_poll(struct file *file, poll_table * wait) | 64 | static __poll_t coda_psdev_poll(struct file *file, poll_table * wait) |
65 | { | 65 | { |
66 | struct venus_comm *vcp = (struct venus_comm *) file->private_data; | 66 | struct venus_comm *vcp = (struct venus_comm *) file->private_data; |
67 | unsigned int mask = POLLOUT | POLLWRNORM; | 67 | __poll_t mask = POLLOUT | POLLWRNORM; |
68 | 68 | ||
69 | poll_wait(file, &vcp->vc_waitq, wait); | 69 | poll_wait(file, &vcp->vc_waitq, wait); |
70 | mutex_lock(&vcp->vc_mutex); | 70 | mutex_lock(&vcp->vc_mutex); |
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 2571404a072b..6fdbf21be318 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
@@ -206,7 +206,7 @@ FULL_PROXY_FUNC(unlocked_ioctl, long, filp, | |||
206 | PROTO(struct file *filp, unsigned int cmd, unsigned long arg), | 206 | PROTO(struct file *filp, unsigned int cmd, unsigned long arg), |
207 | ARGS(filp, cmd, arg)); | 207 | ARGS(filp, cmd, arg)); |
208 | 208 | ||
209 | static unsigned int full_proxy_poll(struct file *filp, | 209 | static __poll_t full_proxy_poll(struct file *filp, |
210 | struct poll_table_struct *wait) | 210 | struct poll_table_struct *wait) |
211 | { | 211 | { |
212 | struct dentry *dentry = F_DENTRY(filp); | 212 | struct dentry *dentry = F_DENTRY(filp); |
diff --git a/fs/dlm/plock.c b/fs/dlm/plock.c index e631b1689228..a4c63e9e6385 100644 --- a/fs/dlm/plock.c +++ b/fs/dlm/plock.c | |||
@@ -463,9 +463,9 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count, | |||
463 | return count; | 463 | return count; |
464 | } | 464 | } |
465 | 465 | ||
466 | static unsigned int dev_poll(struct file *file, poll_table *wait) | 466 | static __poll_t dev_poll(struct file *file, poll_table *wait) |
467 | { | 467 | { |
468 | unsigned int mask = 0; | 468 | __poll_t mask = 0; |
469 | 469 | ||
470 | poll_wait(file, &send_wq, wait); | 470 | poll_wait(file, &send_wq, wait); |
471 | 471 | ||
diff --git a/fs/dlm/user.c b/fs/dlm/user.c index d18e7a539f11..662432af8ce8 100644 --- a/fs/dlm/user.c +++ b/fs/dlm/user.c | |||
@@ -887,7 +887,7 @@ static ssize_t device_read(struct file *file, char __user *buf, size_t count, | |||
887 | return rv; | 887 | return rv; |
888 | } | 888 | } |
889 | 889 | ||
890 | static unsigned int device_poll(struct file *file, poll_table *wait) | 890 | static __poll_t device_poll(struct file *file, poll_table *wait) |
891 | { | 891 | { |
892 | struct dlm_user_proc *proc = file->private_data; | 892 | struct dlm_user_proc *proc = file->private_data; |
893 | 893 | ||
diff --git a/fs/ecryptfs/miscdev.c b/fs/ecryptfs/miscdev.c index f09cacaf8c80..7423e792a092 100644 --- a/fs/ecryptfs/miscdev.c +++ b/fs/ecryptfs/miscdev.c | |||
@@ -38,11 +38,11 @@ static atomic_t ecryptfs_num_miscdev_opens; | |||
38 | * | 38 | * |
39 | * Returns the poll mask | 39 | * Returns the poll mask |
40 | */ | 40 | */ |
41 | static unsigned int | 41 | static __poll_t |
42 | ecryptfs_miscdev_poll(struct file *file, poll_table *pt) | 42 | ecryptfs_miscdev_poll(struct file *file, poll_table *pt) |
43 | { | 43 | { |
44 | struct ecryptfs_daemon *daemon = file->private_data; | 44 | struct ecryptfs_daemon *daemon = file->private_data; |
45 | unsigned int mask = 0; | 45 | __poll_t mask = 0; |
46 | 46 | ||
47 | mutex_lock(&daemon->mux); | 47 | mutex_lock(&daemon->mux); |
48 | if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) { | 48 | if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) { |
diff --git a/fs/eventfd.c b/fs/eventfd.c index 2fb4eadaa118..6318a9b57e53 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c | |||
@@ -114,10 +114,10 @@ static int eventfd_release(struct inode *inode, struct file *file) | |||
114 | return 0; | 114 | return 0; |
115 | } | 115 | } |
116 | 116 | ||
117 | static unsigned int eventfd_poll(struct file *file, poll_table *wait) | 117 | static __poll_t eventfd_poll(struct file *file, poll_table *wait) |
118 | { | 118 | { |
119 | struct eventfd_ctx *ctx = file->private_data; | 119 | struct eventfd_ctx *ctx = file->private_data; |
120 | unsigned int events = 0; | 120 | __poll_t events = 0; |
121 | u64 count; | 121 | u64 count; |
122 | 122 | ||
123 | poll_wait(file, &ctx->wqh, wait); | 123 | poll_wait(file, &ctx->wqh, wait); |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 21e6fee00e8b..67fb3b850c99 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -920,7 +920,7 @@ static int ep_read_events_proc(struct eventpoll *ep, struct list_head *head, | |||
920 | return 0; | 920 | return 0; |
921 | } | 921 | } |
922 | 922 | ||
923 | static unsigned int ep_eventpoll_poll(struct file *file, poll_table *wait) | 923 | static __poll_t ep_eventpoll_poll(struct file *file, poll_table *wait) |
924 | { | 924 | { |
925 | struct eventpoll *ep = file->private_data; | 925 | struct eventpoll *ep = file->private_data; |
926 | int depth = 0; | 926 | int depth = 0; |
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 17f0d05bfd4c..aa089a6925d0 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -2004,9 +2004,9 @@ out: | |||
2004 | return ret; | 2004 | return ret; |
2005 | } | 2005 | } |
2006 | 2006 | ||
2007 | static unsigned fuse_dev_poll(struct file *file, poll_table *wait) | 2007 | static __poll_t fuse_dev_poll(struct file *file, poll_table *wait) |
2008 | { | 2008 | { |
2009 | unsigned mask = POLLOUT | POLLWRNORM; | 2009 | __poll_t mask = POLLOUT | POLLWRNORM; |
2010 | struct fuse_iqueue *fiq; | 2010 | struct fuse_iqueue *fiq; |
2011 | struct fuse_dev *fud = fuse_get_dev(file); | 2011 | struct fuse_dev *fud = fuse_get_dev(file); |
2012 | 2012 | ||
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index cb7dff5c45d7..fa4ca6bd2c96 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -2751,7 +2751,7 @@ static void fuse_register_polled_file(struct fuse_conn *fc, | |||
2751 | spin_unlock(&fc->lock); | 2751 | spin_unlock(&fc->lock); |
2752 | } | 2752 | } |
2753 | 2753 | ||
2754 | unsigned fuse_file_poll(struct file *file, poll_table *wait) | 2754 | __poll_t fuse_file_poll(struct file *file, poll_table *wait) |
2755 | { | 2755 | { |
2756 | struct fuse_file *ff = file->private_data; | 2756 | struct fuse_file *ff = file->private_data; |
2757 | struct fuse_conn *fc = ff->fc; | 2757 | struct fuse_conn *fc = ff->fc; |
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index d5773ca67ad2..c4c093bbf456 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -951,7 +951,7 @@ long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg, | |||
951 | unsigned int flags); | 951 | unsigned int flags); |
952 | long fuse_ioctl_common(struct file *file, unsigned int cmd, | 952 | long fuse_ioctl_common(struct file *file, unsigned int cmd, |
953 | unsigned long arg, unsigned int flags); | 953 | unsigned long arg, unsigned int flags); |
954 | unsigned fuse_file_poll(struct file *file, poll_table *wait); | 954 | __poll_t fuse_file_poll(struct file *file, poll_table *wait); |
955 | int fuse_dev_release(struct inode *inode, struct file *file); | 955 | int fuse_dev_release(struct inode *inode, struct file *file); |
956 | 956 | ||
957 | bool fuse_write_update_size(struct inode *inode, loff_t pos); | 957 | bool fuse_write_update_size(struct inode *inode, loff_t pos); |
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index 9698e51656b1..c53d9cc5ae7a 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c | |||
@@ -832,7 +832,7 @@ void kernfs_drain_open_files(struct kernfs_node *kn) | |||
832 | * to see if it supports poll (Neither 'poll' nor 'select' return | 832 | * to see if it supports poll (Neither 'poll' nor 'select' return |
833 | * an appropriate error code). When in doubt, set a suitable timeout value. | 833 | * an appropriate error code). When in doubt, set a suitable timeout value. |
834 | */ | 834 | */ |
835 | static unsigned int kernfs_fop_poll(struct file *filp, poll_table *wait) | 835 | static __poll_t kernfs_fop_poll(struct file *filp, poll_table *wait) |
836 | { | 836 | { |
837 | struct kernfs_open_file *of = kernfs_of(filp); | 837 | struct kernfs_open_file *of = kernfs_of(filp); |
838 | struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry); | 838 | struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry); |
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index d0d4bc4c4b70..ef08d64c84b8 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -239,10 +239,10 @@ out_close_fd: | |||
239 | } | 239 | } |
240 | 240 | ||
241 | /* intofiy userspace file descriptor functions */ | 241 | /* intofiy userspace file descriptor functions */ |
242 | static unsigned int fanotify_poll(struct file *file, poll_table *wait) | 242 | static __poll_t fanotify_poll(struct file *file, poll_table *wait) |
243 | { | 243 | { |
244 | struct fsnotify_group *group = file->private_data; | 244 | struct fsnotify_group *group = file->private_data; |
245 | int ret = 0; | 245 | __poll_t ret = 0; |
246 | 246 | ||
247 | poll_wait(file, &group->notification_waitq, wait); | 247 | poll_wait(file, &group->notification_waitq, wait); |
248 | spin_lock(&group->notification_lock); | 248 | spin_lock(&group->notification_lock); |
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index d3c20e0bb046..5c29bf16814f 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
@@ -107,10 +107,10 @@ static inline u32 inotify_mask_to_arg(__u32 mask) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | /* intofiy userspace file descriptor functions */ | 109 | /* intofiy userspace file descriptor functions */ |
110 | static unsigned int inotify_poll(struct file *file, poll_table *wait) | 110 | static __poll_t inotify_poll(struct file *file, poll_table *wait) |
111 | { | 111 | { |
112 | struct fsnotify_group *group = file->private_data; | 112 | struct fsnotify_group *group = file->private_data; |
113 | int ret = 0; | 113 | __poll_t ret = 0; |
114 | 114 | ||
115 | poll_wait(file, &group->notification_waitq, wait); | 115 | poll_wait(file, &group->notification_waitq, wait); |
116 | spin_lock(&group->notification_lock); | 116 | spin_lock(&group->notification_lock); |
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 9c7c18c0e129..385fcefa8bc5 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -220,9 +220,9 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) | |||
220 | return 0; | 220 | return 0; |
221 | } | 221 | } |
222 | 222 | ||
223 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) | 223 | static __poll_t dlmfs_file_poll(struct file *file, poll_table *wait) |
224 | { | 224 | { |
225 | int event = 0; | 225 | __poll_t event = 0; |
226 | struct inode *inode = file_inode(file); | 226 | struct inode *inode = file_inode(file); |
227 | struct dlmfs_inode_private *ip = DLMFS_I(inode); | 227 | struct dlmfs_inode_private *ip = DLMFS_I(inode); |
228 | 228 | ||
diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c index a324dc584bf7..109fffd6d153 100644 --- a/fs/orangefs/devorangefs-req.c +++ b/fs/orangefs/devorangefs-req.c | |||
@@ -814,10 +814,10 @@ void orangefs_dev_cleanup(void) | |||
814 | ORANGEFS_REQDEVICE_NAME); | 814 | ORANGEFS_REQDEVICE_NAME); |
815 | } | 815 | } |
816 | 816 | ||
817 | static unsigned int orangefs_devreq_poll(struct file *file, | 817 | static __poll_t orangefs_devreq_poll(struct file *file, |
818 | struct poll_table_struct *poll_table) | 818 | struct poll_table_struct *poll_table) |
819 | { | 819 | { |
820 | int poll_revent_mask = 0; | 820 | __poll_t poll_revent_mask = 0; |
821 | 821 | ||
822 | poll_wait(file, &orangefs_request_list_waitq, poll_table); | 822 | poll_wait(file, &orangefs_request_list_waitq, poll_table); |
823 | 823 | ||
@@ -515,10 +515,10 @@ static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
515 | } | 515 | } |
516 | 516 | ||
517 | /* No kernel lock held - fine */ | 517 | /* No kernel lock held - fine */ |
518 | static unsigned int | 518 | static __poll_t |
519 | pipe_poll(struct file *filp, poll_table *wait) | 519 | pipe_poll(struct file *filp, poll_table *wait) |
520 | { | 520 | { |
521 | unsigned int mask; | 521 | __poll_t mask; |
522 | struct pipe_inode_info *pipe = filp->private_data; | 522 | struct pipe_inode_info *pipe = filp->private_data; |
523 | int nrbufs; | 523 | int nrbufs; |
524 | 524 | ||
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 149fd4d75db6..5e6f160d96a2 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
@@ -234,7 +234,7 @@ static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t | |||
234 | return rv; | 234 | return rv; |
235 | } | 235 | } |
236 | 236 | ||
237 | static unsigned int proc_reg_poll(struct file *file, struct poll_table_struct *pts) | 237 | static __poll_t proc_reg_poll(struct file *file, struct poll_table_struct *pts) |
238 | { | 238 | { |
239 | struct proc_dir_entry *pde = PDE(file_inode(file)); | 239 | struct proc_dir_entry *pde = PDE(file_inode(file)); |
240 | __poll_t rv = DEFAULT_POLLMASK; | 240 | __poll_t rv = DEFAULT_POLLMASK; |
diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index e0f8774acd65..f0bfb45c3f9f 100644 --- a/fs/proc/kmsg.c +++ b/fs/proc/kmsg.c | |||
@@ -40,7 +40,7 @@ static ssize_t kmsg_read(struct file *file, char __user *buf, | |||
40 | return do_syslog(SYSLOG_ACTION_READ, buf, count, SYSLOG_FROM_PROC); | 40 | return do_syslog(SYSLOG_ACTION_READ, buf, count, SYSLOG_FROM_PROC); |
41 | } | 41 | } |
42 | 42 | ||
43 | static unsigned int kmsg_poll(struct file *file, poll_table *wait) | 43 | static __poll_t kmsg_poll(struct file *file, poll_table *wait) |
44 | { | 44 | { |
45 | poll_wait(file, &log_wait, wait); | 45 | poll_wait(file, &log_wait, wait); |
46 | if (do_syslog(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0, SYSLOG_FROM_PROC)) | 46 | if (do_syslog(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0, SYSLOG_FROM_PROC)) |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c5cbbdff3c3d..63325377621a 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -630,12 +630,12 @@ static int proc_sys_open(struct inode *inode, struct file *filp) | |||
630 | return 0; | 630 | return 0; |
631 | } | 631 | } |
632 | 632 | ||
633 | static unsigned int proc_sys_poll(struct file *filp, poll_table *wait) | 633 | static __poll_t proc_sys_poll(struct file *filp, poll_table *wait) |
634 | { | 634 | { |
635 | struct inode *inode = file_inode(filp); | 635 | struct inode *inode = file_inode(filp); |
636 | struct ctl_table_header *head = grab_header(inode); | 636 | struct ctl_table_header *head = grab_header(inode); |
637 | struct ctl_table *table = PROC_I(inode)->sysctl_entry; | 637 | struct ctl_table *table = PROC_I(inode)->sysctl_entry; |
638 | unsigned int ret = DEFAULT_POLLMASK; | 638 | __poll_t ret = DEFAULT_POLLMASK; |
639 | unsigned long event; | 639 | unsigned long event; |
640 | 640 | ||
641 | /* sysctl was unregistered */ | 641 | /* sysctl was unregistered */ |
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 7b635d173213..7a3d0ff9b7a8 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c | |||
@@ -18,12 +18,12 @@ | |||
18 | #include "pnode.h" | 18 | #include "pnode.h" |
19 | #include "internal.h" | 19 | #include "internal.h" |
20 | 20 | ||
21 | static unsigned mounts_poll(struct file *file, poll_table *wait) | 21 | static __poll_t mounts_poll(struct file *file, poll_table *wait) |
22 | { | 22 | { |
23 | struct seq_file *m = file->private_data; | 23 | struct seq_file *m = file->private_data; |
24 | struct proc_mounts *p = m->private; | 24 | struct proc_mounts *p = m->private; |
25 | struct mnt_namespace *ns = p->ns; | 25 | struct mnt_namespace *ns = p->ns; |
26 | unsigned res = POLLIN | POLLRDNORM; | 26 | __poll_t res = POLLIN | POLLRDNORM; |
27 | int event; | 27 | int event; |
28 | 28 | ||
29 | poll_wait(file, &p->ns->poll, wait); | 29 | poll_wait(file, &p->ns->poll, wait); |
diff --git a/fs/signalfd.c b/fs/signalfd.c index 5f1ff8756595..31e923bec99a 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c | |||
@@ -58,10 +58,10 @@ static int signalfd_release(struct inode *inode, struct file *file) | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | static unsigned int signalfd_poll(struct file *file, poll_table *wait) | 61 | static __poll_t signalfd_poll(struct file *file, poll_table *wait) |
62 | { | 62 | { |
63 | struct signalfd_ctx *ctx = file->private_data; | 63 | struct signalfd_ctx *ctx = file->private_data; |
64 | unsigned int events = 0; | 64 | __poll_t events = 0; |
65 | 65 | ||
66 | poll_wait(file, ¤t->sighand->signalfd_wqh, wait); | 66 | poll_wait(file, ¤t->sighand->signalfd_wqh, wait); |
67 | 67 | ||
diff --git a/fs/timerfd.c b/fs/timerfd.c index 040612ec9598..0510717f3a53 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c | |||
@@ -227,10 +227,10 @@ static int timerfd_release(struct inode *inode, struct file *file) | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | static unsigned int timerfd_poll(struct file *file, poll_table *wait) | 230 | static __poll_t timerfd_poll(struct file *file, poll_table *wait) |
231 | { | 231 | { |
232 | struct timerfd_ctx *ctx = file->private_data; | 232 | struct timerfd_ctx *ctx = file->private_data; |
233 | unsigned int events = 0; | 233 | __poll_t events = 0; |
234 | unsigned long flags; | 234 | unsigned long flags; |
235 | 235 | ||
236 | poll_wait(file, &ctx->wqh, wait); | 236 | poll_wait(file, &ctx->wqh, wait); |
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index ac9a4e65ca49..c0a5d9c47c6d 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c | |||
@@ -921,10 +921,10 @@ static inline struct userfaultfd_wait_queue *find_userfault_evt( | |||
921 | return find_userfault_in(&ctx->event_wqh); | 921 | return find_userfault_in(&ctx->event_wqh); |
922 | } | 922 | } |
923 | 923 | ||
924 | static unsigned int userfaultfd_poll(struct file *file, poll_table *wait) | 924 | static __poll_t userfaultfd_poll(struct file *file, poll_table *wait) |
925 | { | 925 | { |
926 | struct userfaultfd_ctx *ctx = file->private_data; | 926 | struct userfaultfd_ctx *ctx = file->private_data; |
927 | unsigned int ret; | 927 | __poll_t ret; |
928 | 928 | ||
929 | poll_wait(file, &ctx->fd_wqh, wait); | 929 | poll_wait(file, &ctx->fd_wqh, wait); |
930 | 930 | ||